Displaying page
of
pages;
Items to
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
|
Title |
Test
Details
Pattern Title
|
Expression |
^[+][0-9]\d{2}-\d{3}-\d{4}$ |
Description |
This is a basic telephone number vaildation which needs a compulsory prefix of a '+' sign with three digits and followed by a hipen, another three digits and finally followed by another hipen and four more digits.
Regards,
Senthil Gunabalan |
Matches |
+974-584-5656 | +000-000-0000 | +323-343-3453 |
Non-Matches |
974-584-5656 | +974 000 0000 |
Author |
Rating:
Not yet rated.
Senthil Gunabalan
|
Title |
Test
Details
Pattern Title
|
Expression |
^([+]39)?((38[{8,9}|0])|(34[{7-9}|0])|(36[6|8|0])|(33[{3-9}|0])|(32[{8,9}]))([\d]{7})$ |
Description |
Validates a Italian mobile phone number with (or without) the International code |
Matches |
+393471234567 | 3381234567 |
Non-Matches |
+39 3401234567 | 347 1234567 | 338-1234567 |
Author |
Rating:
Not yet rated.
Fabrizio Fortini
|
Title |
Test
Details
Pattern Title
|
Expression |
^[01]?[- .]?\(?[2-9]\d{2}\)?[- .]?\d{3}[- .]?\d{4}$ |
Description |
U. S. or Canadian telephone number regular expression. <BR>
<BR>
// # Checks phone numbers for validity <BR>
// [01]? # optional '0', or '1' <BR>
// [- .]? # optional separator is either a dash, a space, or a period. <BR>
// \(? # optional parentheses <BR>
// [2-9] # first # of the area code must not be a '0' or '1' <BR>
// \d{2} # next 2 digits of area code can be 0-9 <BR>
// \)? # optional parentheses <BR>
// [- .]? # optional separator is either a dash, a space, or a period. <BR>
// \d{3} # 3-digit prefix <BR>
// [- .]? # optional separator is either a dash, a space, or a period. <BR>
// \d{4} # 4-digit station number <BR>
|
Matches |
18008793262 | 800-879-3262 | 0-800.879.3262 |
Non-Matches |
879 3262 | 077 879 3262 | 879-3262 |
Author |
Rating:
Not yet rated.
W. D.
|
Title |
Test
Details
UK Phone Number
|
Expression |
^((\(?0\d{4}\)?\s?\d{3}\s?\d{3})|(\(?0\d{3}\)?\s?\d{3}\s?\d{4})|(\(?0\d{2}\)?\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3}))?$ |
Description |
UK phone number. Allows 3, 4 or 5 digit regional prefix, with 8, 7 or 6 digit phone number respectively, plus optional 3 or 4 digit extension number prefixed with a # symbol. Also allows optional brackets surrounding the regional prefix and optional spaces between appropriate groups of numbers. |
Matches |
01222 555 555 | (010) 55555555 #2222 | 0122 555 5555#222 |
Non-Matches |
01222 555 5555 | (010) 55555555 #22 | 0122 5555 5555#222 |
Author |
Rating:
Not yet rated.
Amos Hurd
|
Title |
Test
Details
UK Mobile Phone Number
|
Expression |
^(\+44\s?7\d{3}|\(?07\d{3}\)?)\s?\d{3}\s?\d{3}$ |
Description |
UK mobile phone number, with optional +44 national code. Allows optional brackets and spaces at appropriate positions. |
Matches |
07222 555555 | (07222) 555555 | +44 7222 555 555 |
Non-Matches |
7222 555555 | +44 07222 555555 | (+447222) 555555 |
Author |
Rating:
Not yet rated.
Amos Hurd
|
Displaying page
of
pages;
Items to