Created
February 18, 2011 05:10
-
-
Save victorbstan/833280 to your computer and use it in GitHub Desktop.
a flexible regex for detecting north american 10 digi phone numbers with or without brackets around the prefix
This file contains 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
/\A\(?[-. ]?\d{3}[-. ]?\)?[-. ]?\d{3}[-. ]?\d{4}\Z/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment