Skip to content

Instantly share code, notes, and snippets.

@acki
Created April 4, 2012 08:35
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 acki/2299726 to your computer and use it in GitHub Desktop.
Save acki/2299726 to your computer and use it in GitHub Desktop.
Regex for international phone numbers (untested)
^((\+\d{1,3}(-| )?\(?\d\)?(-| )?\d{1,3})|(\(?\d{2,3}\)?))(-| )?(\d{3,4})(-| )?(\d{4})(( x| ext)\d{1,5}){0,1}$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment