Skip to content

Instantly share code, notes, and snippets.

@fengelz
Created February 20, 2012 08:58
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 fengelz/1868492 to your computer and use it in GitHub Desktop.
Save fengelz/1868492 to your computer and use it in GitHub Desktop.
Javascript email validation. Validated with JSONLint.
var isEmail = function(a){return (/^[\w\.%\+\-]+@(?:[A-Z0-9\-]+\.)+(?:[A-Z]{2,6})$/i).test(a);};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment