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 US Phone Number w/ ext.
Expression
^([+]?\d{1,4})?([\s-.+]?\(?\d{3}\)?)?([\s-.]?\d{3})([\s-.]?\d{4})\s?([eE]?[xX]?[tT]?[\s-.:]?\s?\d{4})?
Description
US phone regex which allows the country code prefix and extension suffix
Matches
1-123-456-7890 ext.1234, +1 (123) 456-7890 x: 1234, 1234567890 EXT 1234
Non-Matches
1 (123) 456-7890 m: 1234, +123456-123-456-7890 T: 12356
Author Rating: Not yet rated. Kennethnume
   Displaying page 1 of 1 pages; Items 1 to 1

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