Skip to content

Instantly share code, notes, and snippets.

@charles-rumley
Last active January 31, 2017 16:31
Show Gist options
  • Save charles-rumley/e13b314662a203e5172a298bc66544b3 to your computer and use it in GitHub Desktop.
Save charles-rumley/e13b314662a203e5172a298bc66544b3 to your computer and use it in GitHub Desktop.
North American Phone Number Regex

North American Phone Number Regex

\+?(\d+)?[ \.-]?\(?(\d{3})\)?[ \.-]?(\d{3})[ \.-]?(\d{4})

This regex matches most NA phone number formats without extensions, including

250-370-8517    
604-851-4700    
+12503708517    
+1232503708517
1.250.370.8517
123.250.370.8517
+1 (250) 370-8517
+123 (260) 359-1583
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment