Displaying page
of
pages;
Items to
Title |
Test
Details
10 or 11 digit US Phone # with optional extension and non-standard separators
|
Expression |
^[1]?[-\.\s]?(\(\d{3}\)|\d{3}){1}[-\.\s]?\d{3}[-\.\s]?\d{4}(\s+|\s*[-\.x]{1}\d{1,6})?$
|
Description |
This expression will match a 10 or 11 digit US phone number with optional area code parenthesis, non-standard seperators such as spaces or dot's (.), and an extension up to 6 digits long
|
Matches |
(800) 555-1212 | 999.555.1212 x1234 | 19995551212x123456
|
Non-Matches |
555-1212 | (800 555-1212 | 888...555-1212
|
Author |
Rating:
Not yet rated.
Joshua Barker
|
Displaying page
of
pages;
Items to