3
Answers

In email field should not allow special characters

mahesh

mahesh

13y
3.1k
1
Dear All,
            For email validation,I,m using this regular expression \w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*.I should not allow following special characters  >> << < > ( ) { } [ ] ? & * ~ ` ! # $ % ^ = + | \ : ' " , ; .it's working fine when i enter special characters after word for example:david>>@cc.com but when i enter special characters in between character for example:dav>>[email protected]'s accepting that mail.Can any one tell me how can i do this?

Thanks in advance.
Answers (3)