Open bboyle opened 9 years ago
https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address
The following JavaScript- and Perl-compatible regular expression is an implementation of the above definition.
/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address