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 Pattern Title
Expression
^\(?[\d]{3}\)?[\s-]?[\d]{3}[\s-]?[\d]{4}$
Description
This regular expression matches 10 digit US Phone numbers in different formats. Some examples are 1)area code in paranthesis. 2)space between different parts of the phone number. 3)no space between different parts of the number. 4)dashes between parts.
Matches
(573)8841878 | 573-884-1234 | 573 234 1256
Non-Matches
(573)(673)2345 | 573-12-2345
Author Rating: Not yet rated. kode kode
   Displaying page 1 of 1 pages; Items 1 to 1

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