← Snippets

Valid Email Address Regex

Added December 27, 2020

Regex to test for a valid email address.

1const emailRegex = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/
2