RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Match US phone numbers any format
Expression
^1?[\s\-\.]?[\.\-\s\(]?(\d{3})[\.\-\s\)]?[\s]?(\d{3})[\.\s\-]?(\d{4})$
Description
Matches all valid US phone number formats with any separators, with or without a 1. US area codes may not begin in 0 or 1. Area code is required.
Matches
3456789000 | 345-678-9000 | 345.678.9000 | (345) 678-9000 | 345 678 9000 | 1 (345) 678-9000 | 1-345-678-9000 | 13456789000
Non-Matches
1 (100) 345-6789 | 023-456-7890 | 1234567 | 1(1)23-45.67
Author Rating: Not yet rated. Logan Bertram
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials