Skip to content

Instantly share code, notes, and snippets.

@SteveMarshall
Created January 10, 2012 15:34
Show Gist options
  • Save SteveMarshall/1589635 to your computer and use it in GitHub Desktop.
Save SteveMarshall/1589635 to your computer and use it in GitHub Desktop.
HTML5 Extended-regex for email
^
[a-zA-Z0-9.!#$%&'*+-/=?\^_`{|}~-]+ # one or more of these pre-@
@
[a-zA-Z0-9-]+ # first (mandatory) domain-part
(?:\.[a-zA-Z0-9-]+)* # subsequent (optional) domain parts inc. TLD
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment