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}\) ?)|(\d{3}[- \.]))?\d{3}[- \.]\d{4}(\s(x\d+)?){0,1}$
Description
This will match US most common telephones format with extension or with out extension. Works with both Java and .NET.
Matches
(123) 456-7890 | (123) 456-7890 x123
Non-Matches
(123) 456-7890 x123x | (123) 456-7890 x123 x123 | (123) 456-7890 x
Author Rating: Not yet rated. khoi le
   Displaying page 1 of 1 pages; Items 1 to 1

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