Click here to Skip to main content
15,912,021 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Im using text box for email in my windows application...while entering email address in the text box i want to allow only 3 dots in that text box...alphabets and numbers are allowed..please give the validation for that text box... for example:prem@yaoo.co.in.org
Posted
Updated 2-Nov-11 20:00pm
v2

1 solution

Use proper regex to fulfill your requirement. BTW, email address can also contain dot like prem.kumar@ym.co.in. Make your considerations clear, and tweak the regex to suit your need.

Email Address Validation Using Regular Expression[^]
 
Share this answer
 
Comments
premkumar.r 3-Nov-11 2:13am    
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...

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