Hi,
Can anyone please help me to write reg expression of below.
I want to validate a string field so it will not allow user to enter any of the below special characters
Characters
: ~ # @ * + % { } <> [] | " \ _
here is the example something I have been using for validating phone number :
- phoneNoFormat = input.TFN_01.toString().replaceAll("^[0-9]{3}-[0-9]{3}-[0-9]{4}$","correct");
- if (phoneNoFormat != "correct")
- {
- alert("Phone Number should be in the format of " + "<b>" + "111-111-1111");
- cancel submit;
- ?
Thanks
Arfater