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\d\d\)?)?( |-|\.)?\d\d\d( |-|\.)?\d{4,4}(( |-|\.)?[ext\.]+ ?\d+)?$
Description
Basic US phone number matching pattern. I found this place and used a regex, so figured I'd share.
Matches
(888) 555-1212 | 888.555.1212 | (888) 555.1212 ext. 1212
Non-Matches
(800) got-fish | 011+ 78907 2344323
Author Rating: Not yet rated. Jon Stephens
   Displaying page 1 of 1 pages; Items 1 to 1

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