| Title |
Test
Find
Pattern Title
|
| Expression |
((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4} |
| Description |
US Phone Number -- doesn't check to see if first digit is legal (not a 0 or 1). |
| Matches |
(123) 456-7890 | 123-456-7890 |
| Non-Matches |
1234567890 |
| Author |
Rating:
Steven Smith
|
| Source |
http://aspalliance.com/QuickStart/howto/doc/RegexCommon.aspx |
| Your Rating |
|
Title: Phone Expression
Name: DZ
Date: 4/30/2003 3:32:17 PM
Comment:
Works for me just find also made a small enhancement to allow .- and sp
((\(\d{3}\) ?)|(\d{3}[- \.]))?\d{3}[- \.]\d{4}
Title: web monkey
Name: shane
Date: 4/22/2003 12:57:57 PM
Comment:
simply doesnt work. nice try though