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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find U.S. Phone Number
Expression
(\+?1[- .]?)?[.\(]?[\d^01]\d{2}\)?[- .]?\d{3}[- .]?\d{4}
Description
Matches most format of valid U.S. phone number. Only numbers whose first digit of area code is between 2 and 9 and whose country code is 1 would be matched. Does not match phones contain characters. See examples for more information.
Matches
2345678900 | 234 567 8900 | 234-567-8900 | (234)567-8900 | (234) 567-8900 | 1-2345678900 | 1-234 567 8900 | 1-234-567-8900 | 1-(234)567-8900 | 1-(234) 567-8900 | +1-2345678900 | +1-234 567 8900 | +1-234-567-8900 | +1-(234)567-8900 | +1-(234) 567-8900 | 1 234 567 8900 | +12345678900 | 234.567.8900 | 1.234.567.8900
Non-Matches
012-345-6789 | 9-2345678900 | 234-ABCDFGH
Author Rating: The rating for this expression. Yihsun Tsai
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