REGULAR EXPRESSION FOR EMAIL ADDRESS THAT ALLOW ONLY 2 DOTS

Posted by Harsh_rc under Regular Expressions on 8/28/2010 | Points: 10 | Views : 3917 | Status : [Member] | Replies : 1
Can any one tell me the expression pattern for regular expression validator control that allow only 2 dots in email address..?
i tried microsoft predefined pattern for email address but it dosent work




Responses

Posted by: LAGHATEROHAN on: 8/30/2010 [Member] Starter | Points: 25

Up
0
Down
Hi Harsh,
You can use following E-Mail validation which allow 2 dots along with other validations. You can modify the following REGEX accordingly.

[a-zA-Z0-9._%+-]+@[a-zA-Z0-9]+\.([a-zA-Z]{3,5}|[a-zA-z]{2,5}\.[a-zA-Z]{2,5})


Thanks,
Rohan Laghate

Best Regards,
Rohan Laghate

Harsh_rc, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response