Skip to content

Instantly share code, notes, and snippets.

@uzegonemad
Created April 2, 2015 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uzegonemad/d6cf4e66c1756bf60e9f to your computer and use it in GitHub Desktop.
Save uzegonemad/d6cf4e66c1756bf60e9f to your computer and use it in GitHub Desktop.
the-almost-perfect-phone-regex
/^\+?\d{0,}?(\s|-|\.){0,}?\(?\d{3}\)?(\s|-|\.){0,}?\d{3}(\s|-|\.){0,}?\d{4}(\s|-|\.){0,}?(ex?t?|extension)?(\s|-|\.){0,}?\d{0,}?$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment