Author: sandy.jan82 | Posted on: 12/9/2008 7:33:59 AM | Views : 420

Hi,

I need to add a regular expression validator in an asp.net page. I have the following regular expression in my code for email validation.

"^[\w-|\.]+@[\w-]+\.(com|net|org|edu|mil|us)$ I need a regular expression for email validation which allows the user to have 2 dots after the @symbol. i.e., an

address like sand@yahoo.net.uk should be accepted as a valid address. Also the text that appears after @ symbol should be the list as mentioned above

(com|net|org|edu|mil|us). Also the user should be able to enter address like sand@yahoo.com. Please suggest a regular expression for this requirement.

Thanks, Sandy
...

Go to the complete details ...