173 regular expressions found in this category!
Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$ |
Description |
Person's name (first, last, or both) in any letter case. Although not perfect, this expression will filter out many incorrect name formats (especially numerics and invalid special characters). |
Matches |
T.F. Johnson | John O'Neil | Mary-Kate Johnson |
Non-Matches |
sam_johnson | Joe--Bob Jones | dfjsd0rd |
Author |
Rating:
Robert Dugre
|
Title |
Test
Details
Pattern Title
|
Expression |
\d{2}.?\d{3}.?\d{3}/?\d{4}-?\d{2} |
Description |
This regular expressions matches CNPJ number. CNPJ is a Registration Number of Brazilian Companies. |
Matches |
00.000.000/0000-00 | 00000000000000 |
Non-Matches |
00-000-000-000-00 | AA.AAA.AAA/AAAA-AA |
Author |
Rating:
Gabriel Fróes
|
Title |
Test
Details
Pattern Title
|
Expression |
^(ac|AC|al|AL|am|AM|ap|AP|ba|BA|ce|CE|df|DF|es|ES|go|GO|ma|MA|mg|MG|ms|MS|mt|MT|pa|PA|pb|PB|pe|PE|pi|PI|pr|PR|rj|RJ|rn|RN|ro|RO|rr|RR|rs|RS|sc|SC|se|SE|sp|SP|to|TO)$ |
Description |
Valida os todos Estados Brasileiros (UF)
e o distrito Federal
|
Matches |
AC | RJ | SP |
Non-Matches |
XX | AB | HJ |
Author |
Rating:
Fernando Cerqueira
|
Title |
Test
Details
Pattern Title
|
Expression |
(?<Sedol>[B-Db-dF-Hf-hJ-Nj-nP-Tp-tV-Xv-xYyZz\d]{6}\d) |
Description |
This regular expression accepts SEDOL (Stock Exchange Daily Official List number, a code used by the London Stock Exchange to identify foreign stocks).
To be more exact - it accepts POTENTIAL SEDOL's, since the last, 7th digit of a sedol is a kind of check-sum digit and this reg-ex doesn’t check’s its correctness. Also, despite following to the formal SEDOL definition - its first character should be a consonant character – there are actual sedol’s with the first character, which is a number (e.g. 0067340 for BAA) and they are accepted by this reg-ex. |
Matches |
0067340 | B01HL06 | 4155586 |
Non-Matches |
12345 | 34A56B7 | 456VGHY |
Author |
Rating:
Alexander Pinsker
|
Title |
Test
Details
Pattern Title
|
Expression |
^\d{3}\s?\d{3}$ |
Description |
This can be used to match indian style pincodes / postal codes used by the indian postal departments which are 6 digits long and may have space after the 3rd digit |
Matches |
400 099 | 400099 | 400050 |
Non-Matches |
2345678 | 12345 | asdf |
Author |
Rating:
anup kallingal
|
Title |
Test
Details
Pattern Title
|
Expression |
^(\d{5}((|-)-\d{4})?)|([A-Za-z]\d[A-Za-z][\s\.\-]?(|-)\d[A-Za-z]\d)|[A-Za-z]{1,2}\d{1,2}[A-Za-z]? \d[A-Za-z]{2}$ |
Description |
Allows Canadian, American and UK postal/zip codes. Allowing hyphens, periods, or spaces to separate. |
Matches |
N9B.1Y8 | 90210-1234 | NE21 6EQ |
Non-Matches |
NN8 Y83 |
Author |
Rating:
Russell Anderson
|
Title |
Test
Details
Pattern Title
|
Expression |
^[0-9]{2}[-][0-9]{2}[-][0-9]{2}$ |
Description |
Validates a UK Bank Sort code |
Matches |
09-01-29 | 05-06-25 |
Non-Matches |
090125 |
Author |
Rating:
Richard Slade
|
Title |
Test
Details
Pattern Title
|
Expression |
|
Description |
Password matching expression. Match all alphanumeric character and predefined wild characters. Password must consists of at least 8 characters and not more than 15 characters.
|
Matches |
|
Non-Matches |
|
Author |
Rating:
lawson law
|
Title |
Test
Details
Pattern Title
|
Expression |
^(1|2|3)((\d{2}((0[13578]|1[02])(0[1-9]|[12]\d|3[01])|(0[13456789]|1[012])(0[1-9]|[12]\d|30)|02(0[1-9]|1\d|2[0-8])))|([02468][048]|[13579][26])0229)(\d{5})$ |
Description |
This pattern matches a Valid Civil ID Number in Kuwait. |
Matches |
175123112345 | 279020412345 |
Non-Matches |
479020412345 | 275043112345 |
Author |
Rating:
Ronnel Santiago
|
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:
kode kode
|
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 |
^\d{5}(-\d{4})?$ |
Description |
Matches standard 5 digit US Zip Codes, or the US ZIP + 4 Standard. |
Matches |
48222 | 48222-1746 |
Non-Matches |
4632 | Blake | 37333-32 |
Author |
Rating:
Blake Facey
|
Title |
Test
Details
Pattern Title
|
Expression |
^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$ |
Description |
This matches an IP address, putting each number in its own group that can be retrieved by number. If you do not care about capturing the numbers, then you can make this shorter by putting everything after ^ until immediately after the first \. in a group ( ) with a {3} after it. Then put the number matching regex in once more.
It only permits numbers in the range 0-255.
|
Matches |
0.0.0.0 | 255.255.255.02 | 192.168.0.136 |
Non-Matches |
256.1.3.4 | 023.44.33.22 | 10.57.98.23. |
Author |
Rating:
Andrew Polshaw
|
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 |
^\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 |
^\(\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]{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{3}-\d{7}[0-6]{1}$ |
Description |
Airway bill no that allows only the format 999-99999998 and does not allow the last digit to be 7,8,9. |
Matches |
999-99999995 | 123-47859683 | 156-78965422 |
Non-Matches |
123-47859689 | 9999999999 | 9588-58964 |
Author |
Rating:
DOZENROSES T
|
Title |
Test
Details
Pattern Title
|
Expression |
^.{4,8}$ |
Description |
Matches any string between 4 and 8 characters in length. Limits the length of a string. Useful to add to password regular expressions. |
Matches |
asdf | 1234 | asdf1234 |
Non-Matches |
asd | 123 | asdfe12345 |
Author |
Rating:
Steven Smith
|
Title |
Test
Details
Pattern Title
|
Expression |
^([a-z0-9]{32})$ |
Description |
Matches a md5 hash, simple yet powerful |
Matches |
790d2cf6ada1937726c17f1ef41ab125 |
Non-Matches |
790D2CF6ADA1937726C17F1EF41AB125 | 790d2cf6ada1937726c17f1ef41ab125f6k |
Author |
Rating:
Thijs Wijnmaalen
|
Displaying page
of
pages;
Items to