Created
April 2, 2015 01:17
-
-
Save uzegonemad/d6cf4e66c1756bf60e9f to your computer and use it in GitHub Desktop.
the-almost-perfect-phone-regex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/^\+?\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