DEV Community

Discussion on: 4 Ways to Validate an Email with JavaScript 📮

Collapse
 
fjones profile image
FJones

Side note on using Regex to validate email addresses: stackoverflow.com/a/201378

Collapse
 
gaelgthomas profile image
Gaël Thomas • Edited

Thanks for sharing this interesting side note! 🙏

Rather than blocking the user with an error, I like the suggestion at the end:
"The specified e-mail address 'myemail@address,com' is invalid. Did you mean 'myemail@address.com'?"