Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Sir

Before @ in the mail id i can able to add many dots, but after @ symbol i want to allow only three dots in it. more than three dots not allowed. Eg:prem.kumar@yahoo.co.in.org. i have to allow three dots after the @ symbol.
Posted
Updated 2-Nov-11 22:07pm
v2
Comments
Prerak Patel 3-Nov-11 2:40am    
Did you even try to change that regex? Don't post new question. You can add comment to the answers, or even modify your question.

1 solution

Try:
@(([^\.]*\.[^\.]*)?){1,3}$
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900