Displaying page
of
pages;
Items to
Title |
Test
Details
Google Maps Latitude,Longitude
|
Expression |
^(?<lat>(-?(90|(\d|[1-8]\d)(\.\d{1,6}){0,1})))\,{1}\s?(?<long>(-?(180|(\d|\d\d|1[0-7]\d)(\.\d{1,6}){0,1})))$ |
Description |
Regular expression for Google's format of Latitude and Longitude (if you were to copy and paste from either the Maps application or the web address).
Allows 7 decimal places, and an optional space after the comma.
A really small extension to Juergen Jungwirth's expression, to allow an optional space between the commas, and an additional decimal place, which is the format that Google often gives. |
Matches |
"0,0“, „48.05, 11.9666679, „90,0“, „-90,-180“ |
Non-Matches |
„05.12345,0“, „90.1234,1“, „1,-180.1“, „0,1.1234567“ |
Author |
Rating:
Andy Jones
|
Title |
Test
Details
Percentage
|
Expression |
^100$|^0$|^[1-9]{0,1}[0-9]{0,1}$|^[1-9]{0,1}[0-9]{0,1}\.[0-9]{1,3}$ |
Description |
Or depending on the decimal convention:
^100$|^0$|^[1-9]{0,1}[0-9]{0,1}$|^[1-9]{0,1}[0-9]{0,1}\,[0-9]{1,3}$
Credit to Samir Azza's expression which I used to expand and arrive at the above expression. |
Matches |
100 | 0 | 99.99 | 10 | 5 | 1.28 |
Non-Matches |
00 | 09.9 | 05.9 |
Author |
Rating:
Not yet rated.
Pedro Sero
|
Title |
Test
Details
Brazilian Phone (mobile or not)
|
Expression |
^((\(([1-9]{2})\))(\s)?(\.)?(\-)?([0-9]{0,1})?([0-9]{4})(\s)?(\.)?(\-)?([0-9]{4})|(([1-9]{2}))(\s)?(\.)?(\-)?([0-9]{0,1})?([0-9]{4})(\s)?(\.)?(\-)?([0-9]{4}))$ |
Description |
This expression allows Brazilian phone numbers as they have 4 or 5 prefix digits and with/without regional code. Not perfect but simplifies. Also allows space or dot or hyphen as optional separator in the number as parenthesis in regional code. |
Matches |
(13)98145-5566 | (11)8854-3236 | (11) 8854-3236 | (11).8854.3236 | (11)-8854-3236 | 1177854425 | 11.5642-3115 |
Non-Matches |
(13654854 | 01 9854-4253 | 11.456758-525 |
Author |
Rating:
José Luís de Oliveira Santos
|
Title |
Test
Details
Date and Hour with yyyy-MM-dd HH:mm format
|
Expression |
((20)[0-9]{2})-((0[1-9])|(1[0-2]))-((3[0-1])|([0-2][1-9]|([1-2][0-9])))\s((2[0-3])|[0-1][0-9]):[0-5][0-9] |
Description |
Date and hour with fixed format, only accepting year >= 2000. If you want more flexibility on the year, you could replace the first expression (20)[0-9]{2} with only [0-9]{4}, that would allow years from 0000 to 9999. |
Matches |
2000-12-29 10:00 2014-10-20 23:59 2001-01-01 00:00 |
Non-Matches |
1999-12-29 09:00 2014-01-02 9:00 2000-1-1 23:10 |
Author |
Rating:
Not yet rated.
Marcelo Teixeira de Melo Filho
|
Title |
Test
Details
German Telephone Number
|
Expression |
[0-9.\-/+() ]{4,} |
Description |
This regex supports international praefix, the national (0) and extension numbers. |
Matches |
+49 (0)40/529 567-31; 529 567-31 |
Non-Matches |
529 |
Author |
Rating:
etdgoibjuuy
|
Title |
Test
Details
String is not just blank spaces (spaces or tabs)
|
Expression |
/^\s+$|^$/gi |
Description |
Match if the string is just empties spaces or there is at least one letter.
Extracted from: http://stackoverflow.com/questions/5063977/regex-empty-string-or-email
Original author: http://stackoverflow.com/users/340688/thomasreggi |
Matches |
just spaces | just tabs | just spaces and tabs |
Non-Matches |
spaces + letter | tabs + letter | letter + space | letter + tab |
Author |
Rating:
Not yet rated.
pacdffgsvdrkno
|
Title |
Test
Details
Pattern Title
|
Expression |
\bhttp(s?)\:\/\/[a-zA-Z0-9\/\?\-\.\&\(\)_=#]* |
Description |
Detects URLs in texts. http or https must precede the URL. |
Matches |
https://icd.slr.xxp.corp/xxp(bD1lbiZjPTAwMSZkPW1pbg==)/bc/bsp/xxp/crm_ui_start/default.htm?sxxrole=ZSU_DEF | http://de.selfhtml.org/perl/sprache/regexpr.htm#zeichen | http://dict.leo.org/#/search=precede&searchLoc=0&resultOrder=basic&multiwordShowSingle=on |
Non-Matches |
www.mgvo.de | www.facebook.com | google.de |
Author |
Rating:
Not yet rated.
Dirk Hartkopf
|
Title |
Test
Details
comma seperated multiple ip address
|
Expression |
@"^((((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))\,?)*$" |
Description |
Comma seperated multiple ip address |
Matches |
123.123.123.123,123.123.123.123 |
Non-Matches |
12313.1231//.12333 |
Author |
Rating:
Not yet rated.
phani
|
Title |
Test
Details
complex numbers
|
Expression |
^[+|-]?[\i0-9\.]{0,}[+|-]?[\i0-9\.]{0,}$ |
Description |
Check complex numbers syntax according to the forms reported in the matching examples list. Scientific notation is not supported (yet?) |
Matches |
1.0+i|i|2|i+2|i-1|0.122222i-0.2333|0.2|0.2i|-2-i|-1.0-i|-3.0+1i|-2.0+1.0i|3.0i-2.0i |
Non-Matches |
1.0E-10|-2-i0.999e-8 |
Author |
Rating:
Not yet rated.
Alessandro Rosa
|
Title |
Test
Details
Arithmetic expression assignment
|
Expression |
(?<id>[A-Za-z_][0-9A-Za-z_]*) (?<op>\=) (?: (?> (?: (?<= ((\.[0-9]+|[0-9]+(\.[0-9]+)?)([eE][-+][0-9]+)?|[0-9]+) | [A-Za-z_][0-9A-Za-z_]* | \) ) (?<op> \+ | \* ) ( ?= ((\.[0-9]+|[0-9]+(\.[0-9]+)?)([eE][-+][0-9]+)?|[0-9]+) | [A-Za-z_][0-9A-Za-z_]* | \( ) ) | ( ?<parenthesis> ( ?<= \= | \+ | \* | \( ) (?<op>\() ( ?= ((\.[0-9]+|[0-9]+(\.[0-9]+)?)([eE][-+][0-9]+)?|[0-9]+) | [A-Za-z_][0-9A-Za-z_]* | \( ) ) | ( ?<-parenthesis> ( ?<= ((\.[0-9]+|[0-9]+(\.[0-9]+)?)([eE][-+][0-9]+)?|[0-9]+) | [A-Za-z_][0-9A-Za-z_]* | \) ) (?<op>\)) (?! ((\.[0-9]+|[0-9]+(\.[0-9]+)?)([eE][-+][0-9]+)?|[0-9]+) | [A-Za-z_][0-9A-Za-z_]* ) ) | (?: (?<= \= | \( | \+ | \* ) (?: (?<const>(\.[0-9]+|[0-9]+(\.[0-9]+)?)([eE][-+][0-9]+)?|[0-9]+) | (?<id>[A-Za-z_][0-9A-Za-z_]*) ) ( ?=$ | \) | \+ | \* ) ) )+ ( ? ( parenthesis ) (?!) ) )$ |
Description |
I use this expression to parse assignment of arithmetic expression. Supports alphanumeric id, scientific numbers, brackets, +/* operators and assignment. |
Matches |
COST=(PRICE+TAX)*0.98e+4+(1+2)*3|x=a*b+(c+d)*5|t=1 |
Non-Matches |
x|1|COST=(PRICE+TAX)*0.98e+4+(1+2)* |
Author |
Rating:
Not yet rated.
Bereznikov Alexey
|
Title |
Test
Details
Panamenian ID (cedula)
|
Expression |
^(?:((?<prov>(?:[1-9]|10))(?<av>AV)?)|((?<tipo>(?:E|N|PE))+))-(?<tomo>\d{1,4})-(?<folio>\d{1,5}) |
Description |
RegEx to match all panamenian identification numbers, including special cases as AV (people born before the actual cedula system), PE (panamanian born abroad), E (foreigner) and N (naturalized).
The format of the cedula is:
**[province code]-[tomo]-[folio]**
And the format for special cases:
**AV: [province code]AV-[tomo]-[folio]
**PE: PE-[tomo]-[folio]
**E: E-[tomo]-[folio]
**N: N-[tomo]-[folio]
**
province code: 1-10
tomo: 1-9999
folio: 1-99999 |
Matches |
4-733-740, 10-45-748, 10AV-45-45, PE-465-4598, E-864-5464 |
Non-Matches |
X-465-546, 4 - 754 - 6564, 9PE-465-321 |
Author |
Rating:
Not yet rated.
Ricardo Tribaldos
|
Title |
Test
Details
Singapore & US phone numbers
|
Expression |
^(\+?\d{1,2}[ -]?)?(\(\+?\d{2,3}\)|\+?\d{2,3})?[ -]?\d{3,4}[ -]?\d{3,4}$ |
Description |
Matches most common varieties of Singapore and US phone numbers, including toll-free numbers. Although untested, it should also match other international phone numbers. |
Matches |
(+65) 8765 4321 | (+65) 87654321 | (+65) 8765-4321 | (+65)8765 4321 | (+65)87654321 | (+65)8765-4321 | +65 8765 4321 | +65 87654321 | +65 8765-4321 | +658765 4321 | +658765-4321 | +6876543215 | 8765 4321 | 87654321 | 8765-4321 | (408) 765 4321 | (408) 7654321 | (408) 765-4321 | (408)765 4321 | (408)7654321 | (408)765-4321 | +1 (408) 765 4321 | +1 (408) 7654321 | +1 (408) 765-4321 | +1 (408)765 4321 | +1 (408)7654321 | +1 (408)765-4321 | +1 408 765 4321 | +1 4087654321 | +1(408) 765 4321 | +1(408) 7654321 | +1(408) 765-4321 | +1(408)765 4321 | +1(408)7654321 | +1(408)765-4321 | 1 (408) 765 4321 |
Non-Matches |
(+65 8765-4321 | +65 87 432 | 8765 4321 | 8765+4321 | (-408) 765 4321 | +1 (1408) 765 4321 |
Author |
Rating:
Tom Doan
|
Title |
Test
Details
Canadian Postal Code
|
Expression |
^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$ |
Description |
Validates the canadian postal code in A1A-1A1 |
Matches |
Z1Z 1Z1 AND Z1Z-1Z1 AND Z1Z1Z1 |
Non-Matches |
apart from above formats |
Author |
Rating:
Not yet rated.
Rajesh
|
Title |
Test
Details
Brazilian DateTime
|
Expression |
^([0]?[1-9]|[1|2][0-9]|[3][0|1])[/]([0]?[1-9]|[1][0-2])[/]([0-9]{4}|[0-9]{2}) ([0-1][0-9]|[2][0-3]):([0-5][0-9])$ |
Description |
Brazilian DateTime |
Matches |
25/11/2014 12:03 2/11/2014 12:03 |
Non-Matches |
25/11/2014 2:03 2/11/2014 12:03 |
Author |
Rating:
Not yet rated.
Guilherme Rhoden
|
Title |
Test
Details
Kamagra Enhancer Droge in ED-Lage
|
Expression |
CEO |
Description |
Ich arbeite für Kamagrainstant.com. Käufer suchen im großen und ganzen etwas außergewöhnlich regelmäßig; Qualität und Angemessenheit. Diese Organisation ist in A verwalten, Kamagra das gute daran ist, dass Kamagrainstant.com beste Natur der Elemente mit Moderateness. Dies ist der Hauptgrund, warum Privatpersonen vertrauen auf diese Organisation und Pharmazie von dieser Organisation zu erwerben. Dies ist eine zuverlässige und authentische online Apotheke, das gibt tranquilizes überall in der ganzen Welt. Angemessenheit stammt aus Masse erhalten, die befähigt, um Rabatte auf die Medikamente zu geben. (Kamagra) http://kamagrainstant.com/ |
Matches |
kamagra, kamagra kaufen |
Non-Matches |
pharmacy |
Author |
Rating:
Not yet rated.
Max
|
Title |
Test
Details
Even Numbers
|
Expression |
(-?[1-9]*\d*[02468])(?=\D) |
Description |
Match even integers, positive or negative, including zero. |
Matches |
-100,-10,-2,0,2,4,6,8,10,12,100,102 |
Non-Matches |
-101,-99,-11,-1,1,3,5,7,9,11,99,101 |
Author |
Rating:
Not yet rated.
Gregory Krohne
|
Title |
Test
Details
Network/Shared location Path Validation
|
Expression |
^((\\){2})(([A-Za-z ',.;]+)(\\?)([A-Za-z ',.;]\\?)*)$ |
Description |
Validates a network path on a shared location. |
Matches |
\\test\sub1\ | \\test\sub1\sub2 | \\test\sub\sub1\sub2 |
Non-Matches |
\test | \\ | \\test\\sub | \\test\sub\\ |
Author |
Rating:
Not yet rated.
DN
|
Displaying page
of
pages;
Items to