How to design a patter to accept following characters and numbers with alpin html5 /!@#%?&*()-+= . Thanks in advance.. jsfiddle.net/5dtk5/
Asked
Active
Viewed 15 times
1 Answers
0
You basically need to specify the regular expression.
Try something like ^[a-zA-Z0-9!@#\$%\^\&*\)\(+=._-]+$

Levi Kovacs
- 1,159
- 8
- 14
-
You have to add it to the regexp, but make sure to escape: `^[a-zA-Z0-9!@#\$%\^\&*\)\/\(+=._-]+$` – Levi Kovacs Feb 12 '14 at 13:48
-
what are all the characters should be escaped..Please give any reference – gauti Feb 12 '14 at 13:54
-
For reference: http://stackoverflow.com/questions/399078/what-special-characters-must-be-escaped-in-regular-expressions – Levi Kovacs Feb 12 '14 at 13:56