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
^(9,)*([1-9]\d{2}-?)*[1-9]\d{2}-?\d{4}$
Description
Validates US or Canadian phone numbers with the use of "-" or numbers stuck together. No parantheses allowed as well as spaces. Area code is optional. The "9," is optional as well, which on some phone systems is needed to dial out.
Matches
9,5143393044 | 9,514-339-3044 | 339-3044
Non-Matches
9,339 3044 | 514 440 2009 | (514) 440-2009
Author Rating: Not yet rated. Max Cacchiotti
   Displaying page 1 of 1 pages; Items 1 to 1

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