Title |
Test
Find
US Telephone
|
Expression |
^\(?([0-9]{3})\)?[\s\.\-]*([0-9]{3})[\s\.\-]*([0-9]{4})$ |
Description |
Basically I didn't like any of the regular expressions that were available because they all failed at parsing them into variables correctly... This regular expression gives you the full match and then the 3 sections of digits seperately. |
Matches |
(000) 000-0000, 0000000000, 000.000.0000 |
Non-Matches |
000/000/0000, 00a.000.000, +000.000.0000 |
Author |
Rating:
Mike Willbanks
|
Source |
|
Your Rating |
|