| Title |
Test
Find
US Phone Number
|
| Expression |
(^[1-9]\d{2}\s*-\s*\d{3}\s*-\s*\d{4}$|^[2-9]\d{9}|^\x28\s*[2-9]\d{2}\s*\x29\s*\d{3}\s*-\s*\d{4}$) |
| Description |
Matches properly formatted US phone numbers. Based on: http://regexlib.com/REDetails.aspx?regexp_id=22 |
| Matches |
2345678901 | (234) 567-8901 | 234-567-8901 | (234) 567-8901 |
| Non-Matches |
1234567890 | 2345678901 | 234 567 8901 |
| Author |
Rating:
Not yet rated.
Seamus
|
| Source |
|
| Your Rating |
|