Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Please change the below regex to allow + (plus) symbol in email address

@"^([a-zA-Z0-9_-.]+)@(([[0-9]{1,3}" + @".[0-9]{1,3}.[0-9]{1,3}.)|(([a-zA-Z0-9-]+\" + @".)+))([a-zA-Z]{2,4}|[0-9]{1,3})(]?)$"

Regards,
Lalitha
Posted

you can use this handy tool to achieve the goal

https://regex101.com/[^]
 
Share this answer
 
You can use following Regular expression that will work according to your condition.

\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b
 
Share this answer
 

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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