Skip to content

Instantly share code, notes, and snippets.

@JWebCoder
Created August 30, 2013 13:22
Show Gist options
  • Save JWebCoder/6389804 to your computer and use it in GitHub Desktop.
Save JWebCoder/6389804 to your computer and use it in GitHub Desktop.
Email verification snippet, javascript
var result = emailVerification("insert email here");
function emailVerification(email){
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
if (!filter.test(email.value)) {
return false;
} else {
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment