Skip to content

Instantly share code, notes, and snippets.

@Jberivera
Last active June 1, 2017 16:00
Show Gist options
  • Select an option

  • Save Jberivera/50c827c5d34c8fa8948dfd04c7ca508c to your computer and use it in GitHub Desktop.

Select an option

Save Jberivera/50c827c5d34c8fa8948dfd04c7ca508c to your computer and use it in GitHub Desktop.
regex = {
'email': /[a-zA-Z0-9]\S+[a-zA-Z0-9]@[a-zA-Z]+\.[a-zA-Z]+(.[a-zA-Z]+)?/,
'tel': /(:?\+\d{1,2}[\-\s])?((\(\d{3}\))|(\d{3}))[\.\s\-]?\d{3}[\.\s\-]?\d{4}(:?\sx\d{1,4})?(:?x\d{1,4})?/
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment