Need to Remove Special charecters

0
Hi, As per my requirement when the user saves the data if any Special characters which are not in this Regex  (^[a-zA-Z0-9!\"#$%&()*+,.:;<=>?@\\^_` -{|}~\f\n\r\t]*$) should be removed or replace with ‘’(empty string) anyone have any idea how to remove these Special characters?   Thanks in Advance  
asked
1 answers
0

A ^ right after the bracket [ negates the regex, so try this:

replaceAll($stringInput, '[^a-zA-Z0-9!\"#$%&()*+,.:;?@\\^_` -{|}~\f\n\r\t]', '')

 

answered