Displaying page
of
pages;
Items to
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 |
^\(\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-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
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 |
^(?:(?<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 |
^[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
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 |
^(?!\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 |
^(?:(?<1>[(])?(?<AreaCode>[2-9]\d{2})(?(1)[)][ ]?|[- \/.]?))?
(?<Prefix>[1-9]\d{2})[- .]?(?<Suffix>\d{4})
(?:(?:[ ]+|[xX]|Ext\.?[ ]?){1,2}(?<Ext>\d{1,5}))?$ |
Description |
PCRE (PHP) regular expression for validating US telephone numbers with OPTIONAL area code, and OPTIONAL extension. Promiscuous formatting (parenthesis or slash, space, dash, dot or no separator). Captures the telephone number area code, prefix, suffix, and extension to named groups. 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 extension or the format. Seperators, when used, must be in the right place. Extension can be preceded by a space(s) and/or "x", "X", or "Ext" and matches on 1 to 5 digits.
Written from the view that getting phone numbers from customers should be as easy and tolerant as possible. Matched number can be parsed and entered into database correctly on the business end.
Based on similar regex by Jerry Schmersahl in this library. Case insensitivity could simplify this expression, but implementation is left up to you.
For PHP/PCRE compatibility, put a "P" in front of each capture name (ie: "(?P<AreaCode>"). This server does not recognize the Python/PCRE naming convention. |
Matches |
785/3215564x51337 | (785)321-5564 Ext. 51337 | 321.5564 x5 |
Non-Matches |
785321556 | (785)321-5564 x | 7853 215567 |
Author |
Rating:
Not yet rated.
Bret Greenwood
|
Title |
Test
Details
Pattern Title
|
Expression |
^(\()?(787|939)(\)|-)?([0-9]{3})(-)?([0-9]{4}|[0-9]{4})$ |
Description |
Filter US telephone numbers. This particular one accepts only area code 939 or 787. Area code parentesis or hyphens optional. |
Matches |
(787)755-0114 | 939-315-0112 | 7879093849 |
Non-Matches |
(098)737-3942 | (89)893-2392 | 939782721 |
Author |
Rating:
Not yet rated.
Ricardo Gonzalez
|
Title |
Test
Details
Pattern Title
|
Expression |
(\+)?([-\._\(\) ]?[\d]{3,20}[-\._\(\) ]?){2,10} |
Description |
Telephone number filter - use to catch and replace phone numbers where you don't want them to appear. |
Matches |
(604) 789-0136 | +123-45678-908 |
Non-Matches |
01.12.23 |
Author |
Rating:
Not yet rated.
Dave Turner
|
Title |
Test
Details
Pattern Title
|
Expression |
^0{0,1}[1-9]{1}[0-9]{2}[\s]{0,1}[\-]{0,1}[\s]{0,1}[1-9]{1}[0-9]{6}$ |
Description |
The regex that matches the telephone numbers in India.
####Enjoy Regex#### |
Matches |
0493 - 3227341 | 0493 3227341 | 493 3227341 |
Non-Matches |
93 0227341 | 493 322734111 | 493 -- 3227341 |
Author |
Rating:
Not yet rated.
Vathachira Joseph Bino
|
Title |
Test
Details
Pattern Title
|
Expression |
(\s*\(?0\d{4}\)?(\s*|-)\d{3}(\s*|-)\d{3}\s*)|(\s*\(?0\d{3}\)?(\s*|-)\d{3}(\s*|-)\d{4}\s*)|(\s*(7|8)(\d{7}|\d{3}(\-|\s{1})\d{4})\s*) |
Description |
another uk telephone number regex. This was adapted from another on this site http://www.regexlib.com/REDetails.aspx?regexp_id=297
I added support for hyphens and for london shorthand numbers ie. 8234-1234 72341234 Still want to be permissive where possible....Still need to sort out the all zeros, also not sure if numbers with 4 digits followed by 7 used in london 0208-234-1234 is the area of the uk where this occurs, or all areas outside of london are in format 5 digits followed by 6 digits ie. 01608 123456. If that is the case for the 4-7 pattern only 0208 or 0207 could be enforced. |
Matches |
0208 993 5689 | 0208-993-5689 | 89935689 |
Non-Matches |
1608 123 456 |
Author |
Rating:
Matt Baskey
|
Title |
Test
Details
Pattern Title
|
Expression |
(\s*\(?0\d{4}\)?(\s*|-)\d{3}(\s*|-)\d{3}\s*)|(\s*\(?0\d{3}\)?(\s*|-)\d{3}(\s*|-)\d{4}\s*)|(\s*(7|8)(\d{7}|\d{3}(\-|\s{1})\d{4})\s*) |
Description |
another uk telephone number regex. This was adapted from another on this site http://www.regexlib.com/REDetails.aspx?regexp_id=297
I added support for hyphens and for london shorthand numbers ie. 8234-1234 72341234 Still want to be permissive where possible....Still need to sort out the all zeros, also not sure if numbers with 4 digits followed by 7 used in london 0208-234-1234 is the area of the uk where this occurs, or all areas outside of london are in format 5 digits followed by 6 digits ie. 01608 123456. If that is the case for the 4-7 pattern only 0208 or 0207 could be enforced. |
Matches |
0208 993 5689 | 0208-993-5689 | 89935689 |
Non-Matches |
1608 123 456 |
Author |
Rating:
Not yet rated.
Matt Baskey
|
Title |
Test
Details
Pattern Title
|
Expression |
(^0[1-9]\d{1}\s\d{4}\s?\d{4}$)|(^0[1-9]\d{2}\s\d{3}\s?\d{4}$)|(^0[1-9]\d{2}\s\d{4}\s?\d{3}$)|(^0[1-9]\d{3}\s\d{3}\s?\d{2}$)|(^0[1-9]\d{3}\s\d{3}\s?\d{3}$)|(^0[1-9]\d{4}\s\d{3}\s?\d{2}$)|(^0[1-9]\d{4}\s\d{2}\s?\d{3}$)|(^0[1-9]\d{4}\s\d{2}\s?\d{2}$) |
Description |
This will match valid UK telephone numbers. This adheres to ofcom's code and number length guide available at http://www.ofcom.org.uk/licensing_numbering/numbers/num_user_guide#1b Brackets and international codes are not allowed.
A space MUST be used after the dialling code, and spaces at the expected points within the remainder of the number can be used if need be, but not nessesary, hence 0208 6473 373 is the same as 0208 647 3373 and 0208 6473373 |
Matches |
01323 293 374 | 020 73643763 | 017354 7478 |
Non-Matches |
02 83838 74 | (01323) 828223 | +44 88282 828 |
Author |
Rating:
rob collyer
|
Title |
Test
Details
Pattern Title
|
Expression |
([0]{1}[6]{1}[-\s]*([1-9]{1}[\s]*){8})|([0]{1}[1-9]{1}[0-9]{1}[0-9]{1}[-\s]*([1-9]{1}[\s]*){6})|([0]{1}[1-9]{1}[0-9]{1}[-\s]*([1-9]{1}[\s]*){7}) |
Description |
Matches dutch telephone numbers WITHOUT country code prefix
Tests on mobile numbers, 3 digits prefix city-codes and 4 digit prefix city codes.
* Disallows a 0 directly after a prefix
* Allows space or a - between prefix and telephonenumber
* Also allows space between telephone digits to compensate the nasty habit of making telphone numbers more readable |
Matches |
06 539 439 99 | 023-123 1233 | 023 121 12 12 |
Non-Matches |
06-539-439-99 | 05-75 46 30 50 |
Author |
Rating:
Nico Lubbers
|
Title |
Test
Details
Pattern Title
|
Expression |
^\(0[1-9]{1}\)[0-9]{8}$ |
Description |
This is used to validate an Australian telephone number with no other characters than the () being used. Validates area code being between 01 - 09. |
Matches |
(02)12341234 | (03)12341234 | (05)12341234 |
Non-Matches |
00 1234 1234 | 00-1234-1234 | (00)12341234 |
Author |
Rating:
Barry Pranklin
|
Title |
Test
Details
Pattern Title
|
Expression |
^(?:(?<Contry>\d{1,1})(?<5>[- ]?)?)?(?:(?<1>[(])?(?<AreaCode>[2-9]\d{2})(?(1)[)])(?(1)(?<2>[ ])|(?:(?<3>[-])|(?<4>[ ])))?)?(?<Prefix>[1-9]\d{2})(?(AreaCode)(?:(?(1)(?(2)[- ]|[-]?))|(?(3)[-])|(?(4)[- ]))|[- ]?)(?<Suffix>\d{4})(?:[ ]?[#xXeE]?(?<Ext>\d{2,4}))?$ |
Description |
Regular expression for validating US and CANADA telephone numbers with OPTIONAL contry code, OPTIONAL area code, and OPTIONAL extension. Matches various permutations of formatting characters (parenthesis, space, dash). Parses the telephone number contry code, area code, prefix, suffix, and extension ... |
Matches |
1-(222) 333-4444 | 1 (222) 333-4444 | 12223334444 |
Non-Matches |
1- (222) 333 4444 | 1 (222) 333-4444 | 1 2223334444 |
Author |
Rating:
Marc Robitaille
|
Displaying page
of
pages;
Items to