Skip to content

Instantly share code, notes, and snippets.

@Luciaisacomputer
Created February 26, 2016 17:54
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 Luciaisacomputer/06f3dfa8edad7390e168 to your computer and use it in GitHub Desktop.
Save Luciaisacomputer/06f3dfa8edad7390e168 to your computer and use it in GitHub Desktop.
Regex for *most* phone numbers
\+(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