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}$
Description
US telephone pattern. Optional area code with or without '()'. If area code has parentheses then it is optionally followed by - or space. If no parentheses then it must be followed by - or space. Number must be separated by either a space or -.
Matches
(555)555-5555 | (555) 555-5555 | 555-5555
Non-Matches
5555555555 | 555.555.5555 | (555 555-5555
Author Rating: Not yet rated. Charles Eatley
   Displaying page 1 of 1 pages; Items 1 to 1

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