Title |
Test
Find
Pattern Title
|
Expression |
((\(\d{3}\) ?)|(\d{3}[- \.]))?\d{3}[- \.]\d{4}(\s(x\d+)?){0,1}$ |
Description |
This will match US most common telephones format with extension or with out extension. Works with both Java and .NET. |
Matches |
(123) 456-7890 | (123) 456-7890 x123 |
Non-Matches |
(123) 456-7890 x123x | (123) 456-7890 x123 x123 | (123) 456-7890 x |
Author |
Rating:
Not yet rated.
khoi le
|
Source |
Extension of Steven Smith regex |
Your Rating |
|
Title: Works great with Ajax MaskedEditExtender
Name: BiNiCi
Date: 10/31/2007 1:54:13 AM
Comment:
Awesome! This is what I needed for the Ajax extender that masks the text box!