DEV Community

Discussion on: What is a regex for a email?

Collapse
 
phlash profile image
Phil Ashby

There are many examples available on the web... this is typical:
stackoverflow.com/questions/139924...

My preference would be to avoid this entirely, as it is a bottomless pit of pain! Depending on what you are doing with email addresses, perhaps you can validate them by sending a message and obtaining a response (click-through link or similar)?