Click here to Skip to main content
15,905,028 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I am traying to validate email id field.
I need regular expression for fixed domain as following.
ex: xyz@cognizant.com
Here, @cognizant.com must be fixed. It should accept email ids which contains only that specific domain
can u plz send the regular expr for that

Thanks in advance
Posted
Updated 5-Feb-15 0:17am
v2

 
Share this answer
 
Comments
/\jmot 5-Feb-15 6:35am    
Yes, i think That's the Answer he/she's looking for.
+5
sarika7592 5-Feb-15 6:57am    
thank u
Try this:
^[_A-Za-z0-9-\\+]+(\\.[_A-Za-z0-9-]+)*@cognizant.com$
 
Share this answer
 
Comments
sarika7592 5-Feb-15 6:57am    
Thanks loadss..Its working

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