Skip to content

Instantly share code, notes, and snippets.

@eloone
Created October 22, 2013 19:21
Show Gist options
  • Save eloone/7106567 to your computer and use it in GitHub Desktop.
Save eloone/7106567 to your computer and use it in GitHub Desktop.
Some regexes
//matches type like kqsjdlqj@kjdfhdjhf (with @ in the middle)
if(/^[^@]+@[^@]+$/.test(type) === true){
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment