-1
/\$|\#|\%|\<|\>|\&|\^|\&|\*|\'|\,/

This is the regular expression to restrict special charterers. I just wanted to add white space RegEx along with the current expression.

Tushar
  • 85,780
  • 21
  • 159
  • 179
Akhil
  • 443
  • 1
  • 9
  • 29

2 Answers2

2

That's it:

/[$#%<>&^*',\s]/
Qwertiy
  • 19,681
  • 15
  • 61
  • 128
1

Try this:

/\$|\#|\%|\<|\>|\&|\^|\&|\*|\'|\,|\s/
Rahul Tripathi
  • 168,305
  • 31
  • 280
  • 331