104 regular expressions found in this category!
Displaying page
of
pages;
Items to
| 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:
Vathachira Joseph Bino
|
| Title |
Test
Details
Pattern Title
|
| Expression |
(^\d{5}$)|(^\d{5}-\d{4}$) |
| Description |
I know its probaly in the library, but i did not see it.
US zip pattern
5 digits 01234 or 5 digits + 4 01234-1234 |
| Matches |
12345 | 12345-6789 | 01234 |
| Non-Matches |
1A234 | 12345-aaaa | 12345 1234 |
| Author |
Rating:
Jay Solomon
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[a-zA-Z0-9ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïñòóôõöøùúûüýÿ\.\,\-\/\']+[a-zA-Z0-9ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïñòóôõöøùúûüýÿ\.\,\-\/\' ]+$ |
| Description |
This simple regexp should match any possible italian address entry and doesn't match NULL entries (good if address is required). Should work well for any other address (it's been verified against 250 addresses from most european countries, usa and australia. Please mail me if there's something missing |
| Matches |
v.le dell'industria 45/a | via genova 45-3-d | p.zza Garibaldi, 48 |
| Non-Matches |
[NULL] |
| Author |
Rating:
paolo beltrami
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^0[234679]{1}[\s]{0,1}[\-]{0,1}[\s]{0,1}[1-9]{1}[0-9]{6}$ |
| Description |
The regex matches the UAE land phone numbers. Checks the area codes[04,02,06...etc] strictly. Force user to input phone numbers in strict manner(it take input 04 3452488, but not 04______spaces_______3452488) |
| Matches |
04 3452488 | 04 -3452488 | 04 - 3452499 |
| Non-Matches |
01 -3452488 | 04 34524888 | 08 3452488 |
| Author |
Rating:
Vathachira Joseph Bino
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[1-9][0-9]{3}\s?[a-zA-Z]{2}$ |
| Description |
Validates Dutch Postal Codes (ZipCode). There was a previous one listed here, but it's not entirely correct. Namely that dutch postal codes can contain a zero but cannot start with one, so this one is the adjusted version. |
| Matches |
1234AB | 1234 AB | 1001 AB |
| Non-Matches |
0123AB | 1234A B | 0123 AB |
| Author |
Rating:
Jos Krause
|
| Title |
Test
Details
Pattern Title
|
| Expression |
(^(?!0{5})(\d{5})(?!-?0{4})(-?\d{4})?$) |
| Description |
Javascript matches US zipcodes not allowing all zeros in first 5 or +4 |
| Matches |
12345 | 12345-6789 | 123456789 |
| Non-Matches |
12345-0000 | 00000-0000 | 00000 |
| Author |
Rating:
Justin Elsberry
|
| 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
State Codes
|
| Expression |
^(?-i:A[LKSZRAEP]|C[AOT]|D[EC]|F[LM]|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEHINOPST]|N[CDEHJMVY]|O[HKR]|P[ARW]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$ |
| Description |
The RE match U.S. state abbreviation used by the U.S. Post Office. |
| Matches |
AL | CA | AA |
| Non-Matches |
New York | California | ny |
| Author |
Rating:
Michael Ash
|
| 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:
Giorgio Spugnesi
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[0-9]{5}$ |
| Description |
Matches german standard postal codes named 'Postleitzahl' |
| Matches |
03242 | 36260 | 12394 |
| Non-Matches |
3520 | 102 | 100202 |
| Author |
Rating:
Kevin Wennemuth
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[a-zA-Z]{1}[0-9]{1}[a-zA-Z]{1}(\-| |){1}[0-9]{1}[a-zA-Z]{1}[0-9]{1}$ |
| Description |
This expression will help match Quebec's postal codes. |
| Matches |
h2j-3c4 | H2J 3C4 | H2J-3c4 |
| Non-Matches |
H2J_3C4 | H213C4 | 123456 |
| Author |
Rating:
Frederic Trudeau
|
| 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:
Ricardo Gonzalez
|
| 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 |
^(\+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:
Amos Hurd
|
| 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:
Senthil Gunabalan
|
| Title |
Test
Details
Pattern Title
|
| Expression |
\b((?:0[1-46-9]\d{3})|(?:[1-357-9]\d{4})|(?:[4][0-24-9]\d{3})|(?:[6][013-9]\d{3}))\b |
| Description |
This is my attempt to find out valid german postal codes (PLZ or Postleitzahlen).
After the German Unification the numbers were changed to a five digit system. The postal codes starts with the two digit "Leitzahl". This is a number between 00 and 99 excluding the not yet used numbers: 00, 05, 43 and 62! After that follows directly a three digit number, 000-999.
Comments welcome. This works for me, however I think it could be written more compact, but could not figure out how ;-)
For more information on german postal codes see:
http://de.wikipedia.org/wiki/Liste_der_Postleitbereiche_Deutschland
http://de.wikipedia.org/wiki/Postleitzahl_%28Deutschland%29
http://en.wikipedia.org/wiki/List_of_postal_codes_in_Germany |
| Matches |
12556 | 01550 | 80796 |
| Non-Matches |
05234 | 8973 | 62980 |
| Author |
Rating:
Markus Matern
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[0-9]{6} |
| Description |
I know its simple, yet there was no Russian postal code regular expression on the RegExLib. Just in case some needs to know the format. |
| Matches |
150016 |
| Non-Matches |
qqww |
| Author |
Rating:
Roman Lukyanenko
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$ |
| Description |
This expression matches three different formats of postal codes: 5 digit US ZIP code, 5 digit US ZIP code + 4, and 6 digit alphanumeric Canadian Postal Code. The first one must be 5 numeric digits. The ZIP+4 must be 5 numeric digits, a hyphen, and then 4 numeric digits. The Canadian postal code must be of the form ANA NAN where A is any uppercase alphabetic character and N is a numeric digit from 0 to 9. |
| Matches |
44240 | 44240-5555 | T2P 3C7 |
| Non-Matches |
44240ddd | t44240-55 | t2p3c7 |
| Author |
Rating:
Qing Jiang
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[abceghjklmnprstvxyABCEGHJKLMNPRSTVXY][0-9][abceghjklmnprstvwxyzABCEGHJKLMNPRSTVWXYZ] {0,1}[0-9][abceghjklmnprstvwxyzABCEGHJKLMNPRSTVWXYZ][0-9]$ |
| Description |
Canadian Postal Code / Codes / Canada / Zip
Google for DFIOQU and you'll see where I got the
info for this.
Can anyone simplify this?
|
| Matches |
G3M 5T9 | C3M5T9 |
| Non-Matches |
Z3M 5T9 | W3M 5T9 | 5T9 C3M |
| Author |
Rating:
W. D.
|
Displaying page
of
pages;
Items to