mahesh

mahesh

  • NA
  • 116
  • 77.8k

In email field should not allow special characters

Aug 7 2011 9:14 AM
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)