Regular expression to match standard 10 digit phone number


Matches the following

(123) 456-7890
123 456 7890
+91 (123) 456-7890

If you do not want a match on non-US numbers use


Update :
As noticed by user Simon Weaver below, if you are also interested in matching on unformatted numbers just make the separator character class optional as [\s.-]?


Leave a Comment