Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
(\s*\(?0\d{4}\)?\s*\d{6}\s*)|(\s*\(?0\d{3}\)?\s*\d{3}\s*\d{4}\s*) |
Description |
UK Phone Number Allows leading and trailing spaces and optional spaces after the dialing code.
Initially the expression I posted was
\s*0\d{4}\s*\d{6}\s*|\s*0\d{3}\s*\d{7}\s*
But this didn't include optional brackets e.g. (01603) 123123 or phone numbers in a London format e.g. 0208 123 1234 |
Matches |
01603 123123 | 0207 1234567 | (0208) 123 1234 |
Non-Matches |
123 123132 |
Author |
Rating:
Joe Gass
|
Title |
Test
Details
Pattern Title
|
Expression |
(([01][\.\- +]\(\d{3}\)[\.\- +]?)|([01][\.\- +]\d{3}[\.\- +])|(\(\d{3}\) ?)|(\d{3}[- \.]))?\d{3}[- \.]\d{4} |
Description |
167 different US telephone patterns. Options includes a)0 or 1 dial, b)area code, c).+-()space between number dial-area code-number. |
Matches |
1 (999) 999 9999 | 999 999 9999 | 999 9999 |
Non-Matches |
19999999999 | 9999999999 | 9999999 |
Author |
Rating:
Not yet rated.
Dennis Zweigle
|
Title |
Test
Details
Pattern Title
|
Expression |
^07([\d]{3})[(\D\s)]?[\d]{3}[(\D\s)]?[\d]{3}$ |
Description |
UK Mobile phone regular expression.
I usually run this against a telephone field to split out landlines and mobile numbers. |
Matches |
07976444333 | 07956-514333 | 07988-321-213 |
Non-Matches |
+44 07976444333 | 08956-444-444 |
Author |
Rating:
Daren Salter
|
Title |
Test
Details
Pattern Title
|
Expression |
^([\(]{1}[0-9]{3}[\)]{1}[ |\-]{0,1}|^[0-9]{3}[\-| ])?[0-9]{3}(\-| ){1}[0-9]{4}$ |
Description |
Validates US phone numbers. Phone number can be delimited with dashes or spaces. Area code can optionally include parentheses. To optionally validate area codes, try this expression.
^([\(]{1}[0-9]{3}[\)]{1}[ |\-]{0,1}|^[0-9]{3}[\-| ])?[0-9]{3}(\-| ){1}[0-9]{4}$ |
Matches |
(111) 223-2332 | (222)233-2332 | 232-323-3233 |
Non-Matches |
(ddd) 223-2332 | 222-232/2333 | 322-3223-222 |
Author |
Rating:
gabe g
|
Title |
Test
Details
Pattern Title
|
Expression |
^\(?082|083|084|072\)?[\s-]?[\d]{3}[\s-]?[\d]{4}$ |
Description |
I modified the existing phone number regex for another user looking to only allow 082, 083, 084, or 072 exchanges. Written by Jason Gaylord |
Matches |
082-131-5555 | 083-145-654 | 072 555 1212 |
Non-Matches |
131-253-4564 | 5551212 | 800 555 1212 |
Author |
Rating:
Not yet rated.
Jason N. Gaylord
|
Title |
Test
Details
Pattern Title
|
Expression |
^[+]447\d{9}$ |
Description |
Validates a UK mobile phone number in International format |
Matches |
+447974405524 | +447932205578 |
Non-Matches |
447974407726 | +4407974407724 |
Author |
Rating:
Richard Slade
|
Title |
Test
Details
Pattern Title
|
Expression |
^(([+]\d{2}[ ][1-9]\d{0,2}[ ])|([0]\d{1,3}[-]))((\d{2}([ ]\d{2}){2})|(\d{3}([ ]\d{3})*([ ]\d{2})+))$ |
Description |
Swedish phone numbers according to SIS standard |
Matches |
+46 8 123 456 78 | 08-123 456 78 | 0123-456 78 |
Non-Matches |
+46 08-123 456 78 | 08 123 456 78 | 0123 456 78 |
Author |
Rating:
Not yet rated.
Martin Henningsson
|
Title |
Test
Details
Pattern Title
|
Expression |
(^(\+?\-? *[0-9]+)([,0-9 ]*)([0-9 ])*$)|(^ *$) |
Description |
This is my basic phone number verification. it allows a + - , signs digits, spaces and blank entry |
Matches |
+0335456 545 545 | -5465 545 | 5456465 5454,545 |
Non-Matches |
fsd54df 54 |
Author |
Rating:
Vitaly Kompot
|
Title |
Test
Details
Pattern Title
|
Expression |
^0(6[045679][0469]){1}(\-)?(1)?[^0\D]{1}\d{6}$ |
Description |
Validates Austrian Cellular Phone Numbers. Works with ONE, T-Mobile, A1, Telering and new Provider "Drei". WITHOUT Country Code Verification. |
Matches |
0664-1234567 | 06641234567 | 0699-11234567 |
Non-Matches |
06991-1234567 | +43650-1234567 | 07661234567 |
Author |
Rating:
Not yet rated.
Stefan Beylen
|
Title |
Test
Details
Pattern Title
|
Expression |
^([\(]{1}[0-9]{3}[\)]{1}[ ]{1}[0-9]{3}[\-]{1}[0-9]{4})$ |
Description |
It is the exact phone number regular expression for '(###) ###-####'.
Written by Jason Gaylord. |
Matches |
(555) 555-1212 |
Non-Matches |
555-1212 | 1-800-555-1212 | 555-555-1212 |
Author |
Rating:
Jason N. Gaylord
|
Title |
Test
Details
Pattern Title
|
Expression |
^([\(]{1}[0-9]{3}[\)]{1}[\.| |\-]{0,1}|^[0-9]{3}[\.|\-| ]?)?[0-9]{3}(\.|\-| )?[0-9]{4}$ |
Description |
More permissive than others on the site, this one allows you to let a user enter US phone numbers in the way they most commonly use, without letting them enter non-valid combinations. |
Matches |
5551212 | 614555-1212 | (614)555-1212 |
Non-Matches |
A12-5555 | (614-555-1212 | 555*1212 |
Author |
Rating:
Jeff Gabriel
|
Title |
Test
Details
Pattern Title
|
Expression |
^([0-9]*\-?\ ?\/?[0-9]*)$ |
Description |
Match italian telephone number with prefix followed by "/", "-" or blank and number. Usefull with numeric keybord! |
Matches |
02-343536 | 02/343536 | 02 343536 |
Non-Matches |
02a343536 | 02+343536 |
Author |
Rating:
Not yet rated.
Giorgio Spugnesi
|
Title |
Test
Details
Phone Numbers
|
Expression |
^(1\s*[-\/\.]?)?(\((\d{3})\)|(\d{3}))\s*[-\/\.]?\s*(\d{3})\s*[-\/\.]?\s*(\d{4})\s*(([xX]|[eE][xX][tT])\.?\s*(\d+))*$ |
Description |
This regular expressions matches phone numbers with area codes and optional US country code and optional phone extension. User have so many ways of entering phone numbers into input fields. This allows for some of the ones I've encountered. Feel free to contact me if you find ones that do not match. |
Matches |
2405525009 | 1(240) 652-5009 | 240/752-5009 ext.55 |
Non-Matches |
(2405525009 | 2 (240) 652-5009 |
Author |
Rating:
Dean Dal Bozzo
|
Title |
Test
Details
Pattern Title
|
Expression |
^(\(?\d\d\d\)?)?( |-|\.)?\d\d\d( |-|\.)?\d{4,4}(( |-|\.)?[ext\.]+ ?\d+)?$ |
Description |
Basic US phone number matching pattern. I found this place and used a regex, so figured I'd share. |
Matches |
(888) 555-1212 | 888.555.1212 | (888) 555.1212 ext. 1212 |
Non-Matches |
(800) got-fish | 011+ 78907 2344323 |
Author |
Rating:
Not yet rated.
Jon Stephens
|
Title |
Test
Details
Pattern Title
|
Expression |
(?<Telephone>([0-9]|[ ]|[-]|[\(]|[\)]|ext.|[,])+)([ ]|[:]|\t|[-])*(?<Where>Home|Office|Work|Away|Fax|FAX|Phone)|(?<Where>Home|Office|Work|Away|Fax|FAX|Phone|Daytime|Evening)([ ]|[:]|\t|[-])*(?<Telephone>([0-9]|[ ]|[-]|[\(]|[\)]|ext.|[,])+)|(?<Telephone>([(]([0-9]){3}[)]([ ])?([0-9]){3}([ ]|-)([0-9]){4})) |
Description |
Its extracts telephone numbers |
Matches |
(913) 451-6461 |
Non-Matches |
3523d3adb3 |
Author |
Rating:
Not yet rated.
Manpreet Grewal
|
Title |
Test
Details
Pattern Title
|
Expression |
([\(]?(?<AreaCode>[0-9]{3})[\)]?)?[ \.\-]?(?<Exchange>[0-9]{3})[ \.\-](?<Number>[0-9]{4}) |
Description |
This was used to process a bunch of lines of information to determine if a line was a North American phone number or not. It accepts numbers with or without area code with or without parenthesis and sepearated by space, dash or period. |
Matches |
(602) 555-3696 | 555-2069 | 213.555.8954 |
Non-Matches |
225-582 | 11000 |
Author |
Rating:
Not yet rated.
Jared Tullis
|
Title |
Test
Details
Pattern Title
|
Expression |
^\s*\(?(020[7,8]{1}\)?[ ]?[1-9]{1}[0-9{2}[ ]?[0-9]{4})|(0[1-8]{1}[0-9]{3}\)?[ ]?[1-9]{1}[0-9]{2}[ ]?[0-9]{3})\s*$ |
Description |
Matches UK phone numbers - London and regional. It started off with something fairly short posted by liljim at www.forums.devshed.com but I wanted a little more precision to weed out all the zeros. Now it also weeds out premium phone numbers (as of 19/12/03). |
Matches |
02071111111 | 01000100000 |
Non-Matches |
00000000000 |
Author |
Rating:
M h
|
Title |
Test
Details
Pattern Title
|
Expression |
^([\+][0-9]{1,3}[\.][0-9]{1,12})([x]?[0-9]{1,4}?)$ |
Description |
Validates on the following standards:
+CCC.ZZZZZZZZZZxYYYY, where 'C' is the numeric
country phone code (up to three digits), 'Z' is the phone number (up to
12 digits) and 'Y' is the extension (up to 4 digits); max length overall is
20 characters, including the '+', '.', and 'x' (if extension is present).
Useful for people communicating with the OpenSRS API |
Matches |
+800.4453377x4444 | +80.4453377 | +8.123456789123x1111 |
Non-Matches |
181823884499 | +800.4453377x | 2486994x11 |
Author |
Rating:
Not yet rated.
Hayk A
|
Title |
Test
Details
Pattern Title
|
Expression |
^(?:(?<1>[(])?(?<AreaCode>[2-9]\d{2})(?(1)[)])(?(1)(?<2>[ ])|(?:(?<3>[-])|(?<4>[ ])))?)?(?<Prefix>[1-9]\d{2})(?(AreaCode)(?:(?(1)(?(2)[- ]|[-]?))|(?(3)[-])|(?(4)[- ]))|[- ]?)(?<Suffix>\d{4})$ |
Description |
Regular expression for validating US telephone numbers with OPTIONAL area code. Matches various permutations of formatting characters (parenthesis, space, dash). Parses the telephone number area code, prefix, and suffix to named groups to facilitate program manipulation. Area code is optional and can optionally be enclosed in parentheses. Rejects area codes that begin with 0 or 1 and prefixes that begin with 0. Rejects all telephone numbers that do not match on exactly 7 digits, or on exactly 10 digits with the optional area code, not counting the formatting characters. |
Matches |
333-4444 | 222 333 4444 | (222) 333-4444 |
Non-Matches |
222333 4444 | 222-333 4444 | (222)-333 4444 |
Author |
Rating:
Jerry Schmersahl
|
Title |
Test
Details
Pattern Title
|
Expression |
^(?:(?<1>[(])?(?<AreaCode>[2-9]\d{2})(?(1)[)])(?(1)(?<2>[ ])|(?:(?<3>[-])|(?<4>[ ])))?)?(?<Prefix>[1-9]\d{2})(?(AreaCode)(?:(?(1)(?(2)[- ]|[-]?))|(?(3)[-])|(?(4)[- ]))|[- ]?)(?<Suffix>\d{4})(?:[ ]?[xX]?(?<Ext>\d{2,4}))?$ |
Description |
Regular expression for validating US telephone numbers with OPTIONAL area code, and OPTIONAL extension. Matches various permutations of formatting characters (parenthesis, space, dash). Parses the telephone number area code, prefix, suffix, and extension to named groups to facilitate program manipulation. Area code is optional and can optionally be enclosed in parentheses. Rejects area codes that begin with 0 or 1 and prefixes that begin with 0. Extension is optional and can be optionally preceded by a space and/or "x" or "X", and matches on 2 to 4 digits. Rejects all telephone numbers that do not match on exactly 7 digits, or on exactly 10 digits with the optional area code, not counting the extension or the formatting characters. |
Matches |
333-4444 | (222) 333-4444 | 222-333-4444 X55 |
Non-Matches |
222333 4444 | (222)-333 4444 | 333-4444-5555 |
Author |
Rating:
Jerry Schmersahl
|
Displaying page
of
pages;
Items to