173 regular expressions found in this category!
Displaying page
of
pages;
Items to
| 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 |
^(s-|S-){0,1}[0-9]{3}\s?[0-9]{2}$ |
| Description |
Validates swedish zipcodes (postnr) with or without space between groups. With leading s- or not. Can be disconnected by removing ''(s-|S-){0,1}''. |
| Matches |
12345 | 932 68 | S-621 46 |
| Non-Matches |
5367 | 425611 | 31 545 |
| Author |
Rating:
Tommy Ullberg
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(.|\n){0,16}$ |
| Description |
Limit Length - limit the length of a text box or other area to contain any character plus new line |
| Matches |
shorter than max |
| Non-Matches |
string longer than max |
| Author |
Rating:
David Yack
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[a-zA-Z0-9\s.\-]+$ |
| Description |
ANY alphanumeric string with spaces, commas, dashes. |
| Matches |
2222 Mock St. | 1 A St. | 555-1212 |
| Non-Matches |
[A Street] | (3 A St.) | {34 C Ave.} |
| Author |
Rating:
Mart Maasikas
|
| 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 |
^[0-9]{4}\s{0,2}[a-zA-z]{2}$ |
| Description |
Dutch postalcode expression. 4 digits followed by max. two spaces end ending on two letters. |
| Matches |
4006 AB | 4006ab | 4006 AB |
| Non-Matches |
4006.ab | 4006_ab | 4006/ab |
| Author |
Rating:
martijn db
|
| Title |
Test
Details
Pattern Title
|
| Expression |
<[^>\s]*\bauthor\b[^>]*> |
| Description |
This expression will match the corresponding XML/HTML elements opening and closing tags. Useful to handle documents fragments, without loading an XML DOM.
|
| Matches |
<author name="Daniel"> | </sch:author> | <pp:author name="Daniel" |
| Non-Matches |
<other> | </authors> | <work>author</work> |
| Author |
Rating:
Daniel Cazzulino
|
| 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 |
^([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-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 |
(\d*)'*-*(\d*)/*(\d*)" |
| Description |
This regular expression is for parsing feet and inches measurements. |
| Matches |
5'-3/16" | 1'-2" | 5/16" |
| Non-Matches |
1 3/16 |
| Author |
Rating:
Felix Osegueda
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[^']*$ |
| Description |
This one matches all strings that do not contain the single quotation mark ('). |
| Matches |
asljas | %/&89uhuhadjkh | "hi there!" |
| Non-Matches |
'hi there!' | It's 9 o'clock | ''''' |
| Author |
Rating:
Peter Friese
|
| 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:
Jason N. Gaylord
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^[a-zA-Z_][a-zA-Z0-9_]*$ |
| Description |
Matches variable names/identifier from C# (and most other languages) |
| Matches |
VariableName | i | Some_Value_3 |
| Non-Matches |
3ID | Hello World |
| Author |
Rating:
Andrew Deren
|
| Title |
Test
Details
Pattern Title
|
| Expression |
(NOT)?(\s*\(*)\s*(\w+)\s*(=|<>|<|>|LIKE|IN)\s*(\(([^\)]*)\)|'([^']*)'|(-?\d*\.?\d+))(\s*\)*\s*)(AND|OR)? |
| Description |
Heres my sql clause parser regexp for recordset filtering. Does recursive query parsing all by its self. Only problem I cant figure is how to match comma separated lists of quoted strings. Tell me if you figure out how!
The unicodes in the re was put in by the entry form please replace them with their ascii equivalents to use it. |
| Matches |
Aeroplane LIKE 767 | Movie LIKE 'Star' AND NOT Movie LIKE 'Trek' | Number IN (1,2,3,4,5) |
| Non-Matches |
Hello there | A=EXCELLENT OR | B!=POOR |
| Author |
Rating:
Joseph Warwick
|
| Title |
Test
Details
Pattern Title
|
| Expression |
^(eth[0-9]$)|(^eth[0-9]:[1-9]$) |
| Description |
regex to validate unix device names (linux). useful for scripts using ifconfig or stuff |
| Matches |
eth0 | eth0:4 | eth4:9 |
| Non-Matches |
eth0: | eth0:0 | eth0:1d |
| Author |
Rating:
Joey Brunner
|
| 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 |
^(\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
|
Displaying page
of
pages;
Items to