Skip to content

Instantly share code, notes, and snippets.

@brandonmartinez
Created September 19, 2014 14:34
Show Gist options
  • Save brandonmartinez/1175ce8dd69526408273 to your computer and use it in GitHub Desktop.
Save brandonmartinez/1175ce8dd69526408273 to your computer and use it in GitHub Desktop.
A basic regex for email validation
[A-z0-9!#$%&'*+/=?^_`{|}~-]+[A-z0-9!#$%&'*+/=?.^_`{|}~-]*(?:-/.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment