Skip to content

Instantly share code, notes, and snippets.

@solancer
Created June 21, 2016 20:41
Show Gist options
  • Save solancer/ab135960d8cbf48eb3c45cffcbe75e9e to your computer and use it in GitHub Desktop.
Save solancer/ab135960d8cbf48eb3c45cffcbe75e9e to your computer and use it in GitHub Desktop.
Email HTML regex pattern
<input type="text"
pattern="[a-zA-Z0-9_]+(?:\.[A-Za-z0-9!#$%&amp;'*+/=?^_`{|}~-]+)*@(?!([a-zA-Z0-9]*\.[a-zA-Z0-9]*\.[a-zA-Z0-9]*\.))(?:[A-Za-z0-9](?:[a-zA-Z0-9-]*[A-Za-z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?"
required>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment