Created
February 26, 2016 17:54
-
-
Save Luciaisacomputer/06f3dfa8edad7390e168 to your computer and use it in GitHub Desktop.
Regex for *most* phone numbers
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
\+(9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d| | |
2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]| | |
4[987654310]|3[9643210]|2[70]|7|1) | |
\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*\d\W*(\d{1,2})$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment