Skip to content

Instantly share code, notes, and snippets.

@jswhisperer
Created July 8, 2013 19:05
Show Gist options
  • Select an option

  • Save jswhisperer/5951536 to your computer and use it in GitHub Desktop.

Select an option

Save jswhisperer/5951536 to your computer and use it in GitHub Desktop.
Regex for valid email
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment