Displaying page
of
pages;
Items to
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
of
pages;
Items to