| Title |
Test
Find
US 10-digit Phone Number
|
| Expression |
\(?(?<areacode>[1]?[2-9]\d{2})\)?[\s-]?(?<prefix>[2-9]\d{2})[\s-]?(?<linenumber>[\d]{4}) |
| Description |
Matches VALID 10 digit US phone numbers. Formatting characters are optional. Valid area codes and prefixes never begin with 0 or 1. |
| Matches |
9875551212 | (987) 555-1212 | 987-555-1212 |
| Non-Matches |
1234567890 | 987-123-5555 |
| Author |
Rating:
Not yet rated.
Brad Williams
|
| Source |
|
| Your Rating |
|