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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details 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
   Displaying page 1 of 1 pages; Items 1 to 1

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