Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^[2-9]\d{2}-\d{3}-\d{4}$ |
Description |
This expression matches a hyphen separated US phone number, of the form ANN-NNN-NNNN, where A is between 2 and 9 and N is between 0 and 9. |
Matches |
800-555-5555 | 333-444-5555 | 212-666-1234 |
Non-Matches |
000-000-0000 | 123-456-7890 | 2126661234 |
Author |
Rating:
Steven Smith
|
Title |
Test
Details
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:
Not yet rated.
Steven Smith
|
Title |
Test
Details
Pattern Title
|
Expression |
\(([0-9]{2}|0{1}((x|[0-9]){2}[0-9]{2}))\)\s*[0-9]{3,4}[- ]*[0-9]{4} |
Description |
Match diferent styles for brazilian Phone number code.
Only DDD (12), complete DDD (012), complete DDD + Telephony Company (0xx12) plus 3 or 4 digits (city code) plus 4 digits (phone number). |
Matches |
(12) 123 1234 | (01512) 123 1234 | (0xx12) 1234 1234 |
Non-Matches |
12 123 1234 | (012) 123/1234 | (012) 123 12345 |
Author |
Rating:
Samuel Mota
|
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 |
^([0-9]( |-)?)?(\(?[0-9]{3}\)?|[0-9]{3})( |-)?([0-9]{3}( |-)?[0-9]{4}|[a-zA-Z0-9]{7})$ |
Description |
Matches US phone number format. 1 in the beginning is optional, area code is required, spaces or dashes can be used as optional divider between number groups. Also alphanumeric format is allowed after area code. |
Matches |
1-(123)-123-1234 | 123 123 1234 | 1-800-ALPHNUM |
Non-Matches |
1.123.123.1234 | (123)-1234-123 | 123-1234 |
Author |
Rating:
Igor Kravtsov
|
Title |
Test
Details
Pattern Title
|
Expression |
((\(\d{3}\)?)|(\d{3}))([\s-./]?)(\d{3})([\s-./]?)(\d{4}) |
Description |
US Phone number that accept a dot, a space, a dash, a forward slash, between the numbers. Will Accept a 1 or 0 in front. Area Code not necessary |
Matches |
1.2123644567 | 0-234.567/8912 | 1-(212)-123 4567 |
Non-Matches |
0-212364345 | 1212-364,4321 | 0212\345/6789 |
Author |
Rating:
Not yet rated.
Mart Maasikas
|
Title |
Test
Details
Pattern Title
|
Expression |
(^1300\d{6}$)|(^1800|1900|1902\d{6}$)|(^0[2|3|7|8]{1}[0-9]{8}$)|(^13\d{4}$)|(^04\d{2,3}\d{6}$) |
Description |
Australian phone numbers: Matches all known formats incl normal 10-digit landline numbers (valid area code mandatory) 13, 1300, 1800, 1900, 1902 plus mobile 10 and 11-digit formats. Use a Replace function first to remove non-numerics which are probably separators (E.g. newNum = number.replace(/[\D]/g, ""). Please contact me if you find any valid Aussie numbers being rejected. |
Matches |
0732105432 | 1300333444 | 131313 |
Non-Matches |
32105432 | 13000456 |
Author |
Rating:
Bill Hely
|
Title |
Test
Details
Pattern Title
|
Expression |
^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$ |
Description |
A regular expression to match phone numbers, allowing for an international dialing code at the start and hyphenation and spaces that are sometimes entered. |
Matches |
(+44)(0)20-12341234 | 02012341234 | +44 (0) 1234-1234 |
Non-Matches |
(44+)020-12341234 | 12341234(+020) |
Author |
Rating:
James Burton
|
Title |
Test
Details
Pattern Title
|
Expression |
(^\+[0-9]{2}|^\+[0-9]{2}\(0\)|^\(\+[0-9]{2}\)\(0\)|^00[0-9]{2}|^0)([0-9]{9}$|[0-9\-\s]{10}$) |
Description |
Regular expression to evaluate dutch-style phone numbers. Possible example prefixes: +31, +31(0), (+31)(0), 0, 0031
followed by 9 numbers (which can contain a space or -). |
Matches |
+31235256677 | +31(0)235256677 | 023-5256677 |
Non-Matches |
+3123525667788999 | 3123525667788 | 232-2566778 |
Author |
Rating:
Jon van Leuven
|
Title |
Test
Details
Pattern Title
|
Expression |
^(1?(-?\d{3})-?)?(\d{3})(-?\d{4})$ |
Description |
US Telephone Reg expression that allows 7, 10 or 11 digits with or without hyphens. |
Matches |
15615552323 | 1-561-555-1212 | 5613333 |
Non-Matches |
1-555-5555 | 15553333 | 0-561-555-1212 |
Author |
Rating:
Not yet rated.
jay gann
|
Title |
Test
Details
Pattern Title
|
Expression |
^[\\(]{0,1}([0-9]){3}[\\)]{0,1}[ ]?([^0-1]){1}([0-9]){2}[ ]?[-]?[ ]?([0-9]){4}[ ]*((x){0,1}([0-9]){1,5}){0,1}$ |
Description |
US Telephone Number where this is regular expression excludes the first number, after the area code,from being 0 or 1; it also allows an extension
to be added where it does not have to be prefixed by 'x'. |
Matches |
(910)456-7890 | (910)456-8970 x12 | (910)456-8970 1211 |
Non-Matches |
(910) 156-7890 | (910) 056-7890 | (910) 556-7890 x |
Author |
Rating:
Not yet rated.
Bill Anderson
|
Title |
Test
Details
Pattern Title
|
Expression |
^([0-9]{2})?(\([0-9]{2})\)([0-9]{3}|[0-9]{4})-[0-9]{4}$ |
Description |
A simple expression to brazilian phone number code, with international code.
Simple DDI without "+" 99 plus simple DDD (99) plus simple local phone number 3 or 4 digits plus "-" plus 4 digits. |
Matches |
55(21)123-4567 | (11)1234-5678 | 55(71)4562-2234 |
Non-Matches |
3434-3432 | 4(23)232-3232 | 55(2)232-232 |
Author |
Rating:
Rafael Miranda
|
Title |
Test
Details
Pattern Title
|
Expression |
^0[23489]{1}(\-)?[^0\D]{1}\d{6}$ |
Description |
Regular Expression that validate a phone number inside israel.
|
Matches |
03-6106666 | 036106666 | 02-5523344 |
Non-Matches |
00-6106666 | 03-0106666 | 02-55812346 |
Author |
Rating:
Not yet rated.
Al Val
|
Title |
Test
Details
Pattern Title
|
Expression |
^0(5[012345678]|6[47]){1}(\-)?[^0\D]{1}\d{5}$ |
Description |
Regular Expression that validate Cellular phone in israel. |
Matches |
050-346634 | 058633633 | 064-228226 |
Non-Matches |
059-336622 | 064-022663 | 0545454545 |
Author |
Rating:
Not yet rated.
Al Val
|
Title |
Test
Details
Pattern Title
|
Expression |
^\(\d{1,2}(\s\d{1,2}){1,2}\)\s(\d{1,2}(\s\d{1,2}){1,2})((-(\d{1,4})){0,1})$ |
Description |
Meets german norm-standard: DIN 5008: 1996-05 for telephone numbers |
Matches |
(0 34 56) 34 56 67 | (03 45) 5 67 67 | (0 45) 2 33 45-45 |
Non-Matches |
(2345) 34 34 | (0 56) 456 456 | (3 45) 2 34-45678 |
Author |
Rating:
Gerald Martin
|
Title |
Test
Details
Pattern Title
|
Expression |
^0[1-6]{1}(([0-9]{2}){4})|((\s[0-9]{2}){4})|((-[0-9]{2}){4})$ |
Description |
Regular Expression that validate phone in France. |
Matches |
01 46 70 89 12 | 01-46-70-89-12 | 0146708912 |
Non-Matches |
01-46708912 | 01 46708912 | +33235256677 |
Author |
Rating:
Not yet rated.
Bertrand Perrin
|
Title |
Test
Details
Pattern Title
|
Expression |
^([0-1]([\s-./\\])?)?(\(?[2-9]\d{2}\)?|[2-9]\d{3})([\s-./\\])?(\d{3}([\s-./\\])?\d{4}|[a-zA-Z0-9]{7})$ |
Description |
It checks for Valid US Phone numbers.
Accepts ".",Space,\,/,- as delim. |
Matches |
1.222.333.1234 | 1-223-123-1232 | 12223334444 |
Non-Matches |
1.1.123123.123 | 12-1322-112-31 | 11231321131 |
Author |
Rating:
Not yet rated.
Amit Deshpande
|
Title |
Test
Details
Pattern Title
|
Expression |
^([0-1]([\s-./\\])?)?(\(?[2-9]\d{2}\)?|[2-9]\d{3})([\s-./\\])?([0-9]{3}([\s-./\\])?[0-9]{4}|[a-zA-Z0-9]{7}|([0-9]{3}[-][a-zA-Z0-9]{4})) |
Description |
USA Alhpanumeric Valid Phone numbers |
Matches |
1.222.333.1234 | 1-223-123-1232 | 1-888-425-DELL |
Non-Matches |
1.1.123123.123 | 12-1322-112-31 | 1-800-CALL-DEL |
Author |
Rating:
Not yet rated.
Amit Deshpande
|
Title |
Test
Details
Pattern Title
|
Expression |
^\(?[\d]{3}\)?[\s-]?[\d]{3}[\s-]?[\d]{4}$ |
Description |
This regular expression matches 10 digit US Phone numbers in different formats. Some examples are
1)area code in paranthesis.
2)space between different parts of the phone number.
3)no space between different parts of the number.
4)dashes between parts.
|
Matches |
(573)8841878 | 573-884-1234 | 573 234 1256 |
Non-Matches |
(573)(673)2345 | 573-12-2345 |
Author |
Rating:
Not yet rated.
kode kode
|
Title |
Test
Details
Pattern Title
|
Expression |
^(\+[1-9][0-9]*(\([0-9]*\)|-[0-9]*-))?[0]?[1-9][0-9\- ]*$ |
Description |
International phone number check - optional country code followed by area code surrounded with '-' or '(' and ')', or just an area code optionally starting with 0, followed by phone numder. The number itself may contain spaces and '-' |
Matches |
+123(45)678-910 | +123-045-67 89 10 | 01-234-56-78 |
Non-Matches |
123(45)678 91011 | (12)345-678 | +0(12)345-6789 |
Author |
Rating:
Not yet rated.
Dmitry Kandiner
|
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
|
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
|
Title |
Test
Details
Modified UK Phone Number
|
Expression |
^(((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{3}\s?\d{3})|((\+44\s?\d{3}|\(?0\d{3}\)?)\s?\d{3}\s?\d{4})|((\+44\s?\d{2}|\(?0\d{2}\)?)\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3}))?$ |
Description |
Modified version of UK phone number regular expression. Now allows +44 national code in addition to extension numbers of 3 or 4 digits. Previous expression was: ^((\(?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}))?$ |
Matches |
+447222555555 | +44 7222 555 555 | (0722) 5555555 #2222 |
Non-Matches |
(+447222)555555 | +44(7222)555555 | (0722) 5555555 #22 |
Author |
Rating:
Not yet rated.
Amos Hurd
|
Title |
Test
Details
Pattern Title
|
Expression |
^([2-9])(\d{2})(-?|\040?)(\d{4})( ?|\040?)(\d{1,4}?|\040?)$ |
Description |
A regular expression that validates the any format of fixed telephone numbers inside Lima - Peru, including an optional extension of at least one number up to four numbers. |
Matches |
263-8854 | 5660578 1235 | 622-4588 21 |
Non-Matches |
1227585 | 4224586 50124 | 0554499 |
Author |
Rating:
Not yet rated.
Alan Ferrandiz Langley
|
Title |
Test
Details
Pattern Title
|
Expression |
^([8-9])([1-9])(\d{2})(-?|\040?)(\d{4})$ |
Description |
A regular expression that validates the any of the new formats of cellular phones numbers in Peru, allows an optional dash in the middle of the number. |
Matches |
8874-2544 | 99106800 | 84509955 |
Non-Matches |
6540-9985 | 77329390 | 725-2763 |
Author |
Rating:
Not yet rated.
Alan Ferrandiz Langley
|
Title |
Test
Details
Pattern Title
|
Expression |
^(?!\d[1]{2}|[5]{3})([2-9]\d{2})([. -]*)\d{4}$ |
Description |
Validates *usable* US telephone numbers (possibly Canadian and Caribbean Islands as well?) Numbers cannot beginning with zero, one, (any number)11, or 555. It will allow either a hyphen, space or period as a separator.
Technically (and contrary to popular belief) most 555- numbers ARE valid numbers [see http://www.nanpa.com/nas/public/form555MasterReport.do?method=display555MasterReport ] but they are unlikely to be used by normal folks. Therefore, excluding them with this regex is useful to prevent bogus/fraudulent telephone numbers in forms.
FYI, the fictitious 555- numbers used in the movies and TV are only in the range of 555-0100 through 555-0199. Not very many, huh? |
Matches |
222-2222 | 295-5000 |
Non-Matches |
555-1234 | 411-5555 | 099-9999 |
Author |
Rating:
Not yet rated.
JP Honeywell
|
Title |
Test
Details
Pattern Title
|
Expression |
^(?:\([2-9]\d{2}\)\ ?|[2-9]\d{2}(?:\-?|\ ?))[2-9]\d{2}[- ]?\d{4}$ |
Description |
US Phone Number: This regular expression for US phone numbers conforms to NANP A-digit and D-digit requirments (ANN-DNN-NNNN). Area Codes 001-199 are not permitted; Central Office Codes 001-199 are not permitted. Format validation accepts 10-digits without delimiters, optional parens on area code, and optional spaces or dashes between area code, central office code and station code. Acceptable formats include 2225551212, 222 555 1212, 222-555-1212, (222) 555 1212, (222) 555-1212, etc. You can add/remove formatting options to meet your needs. |
Matches |
5305551212 | (530) 555-1212 | 530-555-1212 |
Non-Matches |
0010011212 | 1991991212 | 123) not-good |
Author |
Rating:
Don Johnston
|
Displaying page
of
pages;
Items to