Skip to content

Instantly share code, notes, and snippets.

@csharpforevermore
Created June 17, 2015 12:34
Show Gist options
  • Save csharpforevermore/db1308289ea103c4cfb8 to your computer and use it in GitHub Desktop.
Save csharpforevermore/db1308289ea103c4cfb8 to your computer and use it in GitHub Desktop.
function validateEmail(email) {
var re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
return re.test(email);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment