Skip to content

Instantly share code, notes, and snippets.

@ephbaum
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ephbaum/2d5cd2ffcc3cfa9f1df8 to your computer and use it in GitHub Desktop.
Save ephbaum/2d5cd2ffcc3cfa9f1df8 to your computer and use it in GitHub Desktop.
simpleRFC2822EmailRegExp
var simpleRFC2822EmailRegExp = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/
if ( ____placeholder____.match( complexRFX2822EmailRegExp ) === null ) { return false; }
// see data @link https://regex101.com/r/uU1fI9/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment