Title |
Test
Find
US Phone Number
|
Expression |
^(\{1}[2-9]{1}[0-9]{2}\){1}[ ]?[2-9]{1}[0-9]{2}(-| )?[0-9]{4}|[2-9]{1}[0-9]{2}[ ]{1}[2-9]{1}[0-9]{2}[ ]{1}[0-9]{4}|[2-9]{1}[0-9]{2}[2-9]{1}[0-9]{6}|[2-9]{1}[0-9]{2}-{1}[2-9]{1}[0-9]{2}-{1}[0-9]{4}){1}$ |
Description |
This should be pretty complete phone number pattern. I use [0-9] when most people seem to use \d because it is easier for me to read. |
Matches |
(233) 233-0000,2332330000,233-233-0000,233 233 0000, etc. |
Non-Matches |
(233)-222-0000,(122)233-000, etc. |
Author |
Rating:
Not yet rated.
Jon Turlington
|
Source |
|
Your Rating |
|