Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^\D?(\d{3})\D?\D?(\d{3})\D?(\d{4})$
|
Description |
This RegEx requires a US phone number WITH area code. It is written to all users to enter whatever delimiters they want or no delimiters at all (i.e. 111-222-3333, or 111.222.3333, or (111) 222-3333, or 1112223333, etc...).
|
Matches |
(111) 222-3333 | 1112223333 | 111-222-3333
|
Non-Matches |
11122223333 | 11112223333 | 11122233333
|
Author |
Rating:
Laurence O'Donnell
|
Title |
Test
Details
Pattern Title
|
Expression |
^([\w\d\-\.]+)@{1}(([\w\d\-]{1,67})|([\w\d\-]+\.[\w\d\-]{1,67}))\.(([a-zA-Z\d]{2,4})(\.[a-zA-Z\d]{2})?)$
|
Description |
This pattern allows standard e-mail addresses (e.g. [email protected]), sub domains (e.g. [email protected]), the new two- and four-letter domains (e.g. [email protected] and [email protected]) and country codes (e.g. [email protected]). Also, this patter follows the Network Solutions standard length of 67 characters for top-level domains. The reason I allow numbers to be entered in the domain suffix is for future planning. If you do not want numbers to be able to be added as a domain suffix (e.g. [email protected]), simply delete the last two occurrences of "\d".
|
Matches |
|
Non-Matches |
|
Author |
Rating:
Not yet rated.
Laurence O'Donnell
|
Displaying page
of
pages;
Items to