RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

Change page:   |    Displaying page 1 of 2 pages; Items 1 to 20
Title Test Details No. of Identification Card (Slovak Republic)
Expression
^(([a-zA-Z]{2})([0-9]{6}))$
Description
[en] Every number of Identification Card in SR contains two letters (begin) and six numbers (continue). Number is without spaces. [sk] Každé císlo obcianskeho preukazu v SR sa musí zacínat dvoma písmenami a pokracuje šiestimi císlicami. Toto císlo neobsahuje medzery.
Matches
SF746208 | dc459862 | gT459685
Non-Matches
HT5635781 | dr56842 | PN 256894
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details Postal Code (Slovak Republic)
Expression
^(([0-9]{5})|([0-9]{3}[ ]{0,1}[0-9]{2}))$
Description
[en] Postal Code in Slovak Republic contains five numbers. Between 3rd and 4th number can be space. [sk] Poštové smerové císlo v Slovenskej Republike má pät císel. Medzi 3. a 4. císlicou môže byt medzera.
Matches
960 07 | 84204
Non-Matches
96 010 | 9604 | 689012
Author Rating: The rating for this expression. Juraj Hajdúch (SK)
Title Test Details Personal identification number (Slovak Republic)
Expression
^([0-9]{2})(01|02|03|04|05|06|07|08|09|10|11|12|51|52|53|54|55|56|57|58|59|60|61|62)(([0]{1}[1-9]{1})|([1-2]{1}[0-9]{1})|([3]{1}[0-1]{1}))/([0-9]{3,4})$
Description
Law 301/1995 z. Z. SR from 14. december 1995. PIN from 1900 to 1953 have sufix with three digits, PIN beyond 1954 have four digits in sufix. In first part of woman PIN is month of birth (3rd & 4th digit) increase +50.
Matches
760612/5689 | 826020/5568 | 500101/256
Non-Matches
680645/256 | 707212/1258 | 260015/4598
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details CHMOD #1
Expression
^([0-7]{3})$
Description
no comment :o)
Matches
777 | 655
Non-Matches
0658 | 778
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details CHMOD #1 (with/without zero)
Expression
^([0]{0,1}[0-7]{3})$
Description
no comment :o)
Matches
0777 | 655
Non-Matches
0779 | 779
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details CHMOD #2
Expression
^((\-|d|l|p|s){1}(\-|r|w|x){9})$
Description
no comment :o)
Matches
-rwxr--r-- | drwxrwxrwx | ----------
Non-Matches
-rwxrwxrw | drwxrwxrwy | -rwxrwxrwxr
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details CRON (part: date/time of execution)
Expression
^(((([\*]{1}){1})|((\*\/){0,1}(([0-9]{1}){1}|(([1-5]{1}){1}([0-9]{1}){1}){1}))) ((([\*]{1}){1})|((\*\/){0,1}(([0-9]{1}){1}|(([1]{1}){1}([0-9]{1}){1}){1}|([2]{1}){1}([0-3]{1}){1}))) ((([\*]{1}){1})|((\*\/){0,1}(([1-9]{1}){1}|(([1-2]{1}){1}([0-9]{1}){1}){1}|([3]{1}){1}([0-1]{1}){1}))) ((([\*]{1}){1})|((\*\/){0,1}(([1-9]{1}){1}|(([1-2]{1}){1}([0-9]{1}){1}){1}|([3]{1}){1}([0-1]{1}){1}))|(jan|feb|mar|apr|may|jun|jul|aug|sep|okt|nov|dec)) ((([\*]{1}){1})|((\*\/){0,1}(([0-7]{1}){1}))|(sun|mon|tue|wed|thu|fri|sat)))$
Description
SUPPORTED constructions: [*] - all five commands; [number] - minutes 0...59, hours 0...23, day in month 1...31, months 1...12, day in week 0...7 (0 & 7 is sun); [*/nubmer] - see construction [number]; [word] - only months (4th command) and days in week (5th command), warning this regexp is case sensitive (lower letters). NON SUPPORTED constructions: [number-number] and [number,number].
Matches
*/15 */12 30 feb 7 | 10 * * * */2 | * * * * *
Non-Matches
62 * * */2 * | * * * 0 * | * * * Feb *
Author Rating: The rating for this expression. Juraj Hajdúch (SK)
Title Test Details registration number of cars - SPZ (Slovak Republic)
Expression
^(B(A|B|C|J|L|N|R|S|Y)|CA|D(K|S|T)|G(A|L)|H(C|E)|IL|K(A|I|E|K|M|N|S)|L(E|C|M|V)|M(A|I|L|T|Y)|N(I|O|M|R|Z)|P(B|D|E|O|K|N|P|T|U|V)|R(A|K|S|V)|S(A|B|C|E|I|K|L|O|N|P|V)|T(A|C|N|O|R|S|T|V)|V(K|T)|Z(A|C|H|I|M|V))([ ]{0,1})([0-9]{3})([A-Z]{2})$
Description
Case sensitive (upper)!
Matches
BB123AB | KE 999BB
Non-Matches
QT 123AB | BB 1234AA | BB001ABC
Author Rating: The rating for this expression. Juraj Hajdúch (SK)
Title Test Details Chees coordinate
Expression
^([a-hA-H]{1}[1-8]{1})$
Description
Letter (a - h) + number (1 - 8). Case insensitive.
Matches
A1 | a8 | b3
Non-Matches
i5 | F9 | AA
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details Tel. number - mobile (Slovak Republic)
Expression
^(([0]{0,1})([1-9]{1})([0-9]{2})){1}([\ ]{0,1})((([0-9]{3})([\ ]{0,1})([0-9]{3}))|(([0-9]{2})([\ ]{0,1})([0-9]{2})([\ ]{0,1})([0-9]{2})))$
Description
no comment
Matches
0955 12 34 56 - 0955 123 456 - 0955 123456 - 0955123456 - 955 12 34 56 - 955 123 456 - 955 123456 - 955123456
Non-Matches
0955 123 4567 - 0055 123 456
Author Rating: The rating for this expression. Juraj Hajdúch (SK)
Title Test Details Country codes ISO 3166-1 (alfa-2)
Expression
^(A(D|E|F|G|I|L|M|N|O|R|S|T|Q|U|W|X|Z)|B(A|B|D|E|F|G|H|I|J|L|M|N|O|R|S|T|V|W|Y|Z)|C(A|C|D|F|G|H|I|K|L|M|N|O|R|U|V|X|Y|Z)|D(E|J|K|M|O|Z)|E(C|E|G|H|R|S|T)|F(I|J|K|M|O|R)|G(A|B|D|E|F|G|H|I|L|M|N|P|Q|R|S|T|U|W|Y)|H(K|M|N|R|T|U)|I(D|E|Q|L|M|N|O|R|S|T)|J(E|M|O|P)|K(E|G|H|I|M|N|P|R|W|Y|Z)|L(A|B|C|I|K|R|S|T|U|V|Y)|M(A|C|D|E|F|G|H|K|L|M|N|O|Q|P|R|S|T|U|V|W|X|Y|Z)|N(A|C|E|F|G|I|L|O|P|R|U|Z)|OM|P(A|E|F|G|H|K|L|M|N|R|S|T|W|Y)|QA|R(E|O|S|U|W)|S(A|B|C|D|E|G|H|I|J|K|L|M|N|O|R|T|V|Y|Z)|T(C|D|F|G|H|J|K|L|M|N|O|R|T|V|W|Z)|U(A|G|M|S|Y|Z)|V(A|C|E|G|I|N|U)|W(F|S)|Y(E|T)|Z(A|M|W))$
Description
Table: http://en.wikipedia.org/wiki/ISO_3166-1
Matches
only country code (two upper letters)
Non-Matches
others
Author Rating: The rating for this expression. Juraj Hajdúch (SK)
Title Test Details Country codes ISO 3166-1 (alfa-3)
Expression
^(A(BW|FG|GO|IA|L(A|B)|N(D|T)|R(E|G|M)|SM|T(A|F|G)|U(S|T)|ZE)|B(DI|E(L|N)|FA|G(D|R)|H(R|S)|IH|L(M|R|Z)|MU|OL|R(A|B|N)|TN|VT|WA)|C(A(F|N)|CK|H(E|L|N)|IV|MR|O(D|G|K|L|M)|PV|RI|UB|XR|Y(M|P)|ZE)|D(EU|JI|MA|NK|OM|ZA)|E(CU|GY|RI|S(H|P|T)|TH)|F(IN|JI|LK|R(A|O)|SM)|G(AB|BR|EO|GY|HA|I(B|N)|LP|MB|NQ|NB|R(C|D|L)|TM|U(F|M|Y))|H(KG|MD|ND|RV|TI|UN)|I(DN|MN|ND|OT|R(L|N|Q)|S(L|R)|TA)|J(AM|EY|OR|PN)|K(AZ|EN|GZ|HM|IR|NA|OR|WT)|L(AO|B(N|R|Y)|CA|IE|KA|SO|TU|UX|VA)|M(A(C|F|R)|CO|D(A|G|V)|EX|HL|KD|L(I|T)|MR|N(E|G|P)|OZ|RT|SR|TQ|US|WI|Y(S|T))|N(AM|CL|ER|FK|GA|I(C|U)|LD|OR|PL|RU|ZL)|OMN|P(A(K|N)|CN|ER|HL|LW|NG|OL|R(I|K|T|Y)|SE|YF)|QAT|R(EU|OU|US|WA)|S(AU|DN|EN|G(P|S)|HN|JM|L(B|E|V)|MR|OM|PM|RB|TP|UR|V(K|N)|W(E|Z)|Y(C|R))|T(C(A|D)|GO|HA|JK|K(L|M)|LS|ON|TO|U(N|R|V)|WN|ZA)|U(EN|GA|KR|MI|RY|SA|ZB)|V(AT|CT|GB|IR|NM|UT)|W(LF|SM)|YEM|Z(AF|MB|WE))$
Description
Table: http://en.wikipedia.org/wiki/ISO_3166-1.
Matches
only country code (three upper letters)
Non-Matches
others
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details Country codes ISO 3166-1 (numeric)
Expression
^(0(0(4|8)|1(0|2|6)|2(0|4|8)|3(1|2|6)|4(0|4|8)|5(0|1|2|6)|6(0|4|8)|7(0|2|4|6)|8(4|6)|9(0|2|6))|1(0(0|4|8)|1(2|6)|2(0|4)|3(2|6)|4(0|4|8)|5(2|6)|6(2|6)|7(0|4|5|8)|8(0|4|8)|9(1|2|6))|2(0(3|4|8)|1(2|4|8)|2(2|6)|3(1|2|3|4|8|9)|4(2|4|8)|5(0|4|8)|6(0|2|6|8)|7(0|5|6)|88|9(2|6))|3(0(0|4|8)|1(2|6)|2(0|4|8)|3(2|4|6)|4(0|4|8)|5(2|6)|6(0|4|8)|7(2|6)|8(0|4|8|9)|92)|4(0(0|4|8)|1(0|4|7|8)|2(2|6|8)|3(0|4|8)|4(0|2|6)|5(0|4|8)|6(2|6)|7(0|4|8)|8(0|4)|9(2|6|8|9))|5(0(0|4|8)|1(2|6)|2(0|4|8)|3(0|3)|4(0|8)|5(4|8)|6(2|6)|7(0|4|8)|8(0|1|3|4|5|6)|9(1|8))|6(0(0|4|8)|1(2|6)|2(0|4|6)|3(0|4|8)|4(2|3|6)|5(2|4|9)|6(0|2|3|6)|7(0|4|8)|8(2|6|8)|9(0|4))|7(0(2|3|4|5|6)|1(0|6)|24|3(2|6)|4(0|4|8)|5(2|6)|6(0|4|8)|7(2|6)|8(0|4|8)|9(2|5|6|8))|8(0(0|4|7)|26|3(1|2|3|4)|40|5(0|8)|6(0|2)|76|8(2|7)|94))$
Description
Table: http://en.wikipedia.org/wiki/ISO_3166-1.
Matches
only country code (three digits)
Non-Matches
others
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details HTML - XHTML - XML - Xblahblahblah comment
Expression
^<\!\-\-(.*)+(\/){0,1}\-\->$
Description
$i = comment; $2 = X or NO-X;
Matches
<!-- comment --> | <!-- comment /--> | <!----> OR <!--/-->
Non-Matches
only comment tags
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details PORTS 1 - 65536
Expression
^([1-9]{1}|[1-9]{1}[0-9]{1,3}|[1-5]{1}[0-9]{4}|6[0-4]{1}[0-9]{3}|65[0-4]{1}[0-9]{2}|655[0-2]{1}[0-9]{1}|6553[0-6]{1})$
Description
Communication ports in PC between 1 - 65536.
Matches
1 | 80 | 65536
Non-Matches
0 | 0999 | 65537
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details CSS color
Expression
^([\#]{0,1}([a-fA-F0-9]{6}|[a-fA-F0-9]{3})|rgb\(([0-9]{1},|[1-9]{1}[0-9]{1},|[1]{1}[0-9]{2},|[2]{1}[0-4]{1}[0-9]{1},|25[0-5]{1},){2}([0-9]{1}|[1-9]{1}[0-9]{1}|[1]{1}[0-9]{2}|[2]{1}[0-4]{1}[0-9]{1}|25[0-5]{1}){1}\)|rgb\(([0-9]{1}%,|[1-9]{1}[0-9]{1}%,|100%,){2}([0-9]{1}%|[1-9]{1}[0-9]{1}%|100%){1}\))$
Description
This reg. exp. is ignore color names. Supported only hexadecimal with 3 or 6 chars (with or only prefix #); rgb syntax (0-255) and rgb syntax with % (0-100).
Matches
FF0000 #ff0000 555 #123 rgb(0,64,128) rgb(25%,75%,100%)
Non-Matches
ss00ff AF00 #0000 rgb(0,256,12) rgb(110%,50%,0%)
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details currency EURO
Expression
^(0|(([1-9]{1}|[1-9]{1}[0-9]{1}|[1-9]{1}[0-9]{2}){1}(\ [0-9]{3}){0,})),(([0-9]{2})|\-\-)([\ ]{1})(€|EUR|EURO){1}$
Description
Supported symbols are € or EUR or EURO (all case sensitive).
Matches
0,00 € | 1 234 567,89 EUR | 1,-- EURO
Non-Matches
00,00 € | 1234567,89 EUR | 0 555,55 EURO | 2,2 EUR | 2,- EUR
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details MySQL 5.1 charset
Expression
^(big5|euc(kr|jpms)|binary|greek|tis620|hebrew|ascii|swe7|koi8(r|u)|(u|keyb)cs2|(dec|hp|utf|geostd|armscii)8|gb(k|2312)|cp(8(5(0|2)|66)|932|125(0|1|6|7))|latin(1|2|5|7)|(u|s)jis|mac(ce|roman))$
Description
supported all charsets in MySQL 5.1, case sensitive (lower)
Matches
utf8 | cp1251 | latin7
Non-Matches
utf-8 | utf16 | cp1252 | LATIN1 | cp 850
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details MySQL 5.1 collate
Expression
^((ucs2|utf8)\_(bin|(general|unicode|roman|slovak|czech|icelandic|(latv|pers)ian|(dan|pol|span|swed|turk)ish|spanish2|(esto|lithua|roma|slove)nian\_ci)))|((mac(ce|roman)|cp(8(5(0|2)|66)|1256)|armscii8|geostd8|ascii|keybcs2|greek|hebrew|koi8(r|u))\_(bin|general\_ci))|((dec8|swe7)\_(bin|swedish\_ci))|((hp8|latin5)\_(bin|english\_ci))|((big5|gb(2312|k))\_(bin|chinese\_ci))|((cp932|eucjpms|(s|u)jis)\_(bin|japanese\_ci))|(euckr\_(bin|korean\_ci))|(tis620\_(bin|thai\_ci))|(latin1\_(bin|(((dan|span|swed)ish|german(1|2))\_ci)|general\_(ci|cs)))|(cp1250\_(bin|czech\_cs|general\_ci))|(latin2\_(bin|czech\_cs|(general|hungarian|croatian)\_ci))|(cp1257\_(bin|(general|lithuanian)\_ci))|(latin7\_(bin|general\_(c(i|s))|estonian\_cs))|(cp1251\_(bin|(general|bulgarian|ukrainian)\_ci|general\_cs))$
Description
supported all collates for all charsets in MySQL 5.1, case sensitive (lower)
Matches
utf8_bin | latin1_swedish_ci
Non-Matches
ucs2_roman_cs | utf_bin_ci
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details subtitles SRT - timestamp
Expression
^([0-1][0-9]|2[0-3]){1}:([0-5][0-9]){1}:([0-5][0-9]){1},([0-9][0-9][0-9]){1} --> ([0-1][0-9]|2[0-3]){1}:([0-5][0-9]){1}:([0-5][0-9]){1},([0-9][0-9][0-9]){1}(.*)$
Description
e. g. HH:MM:SS:ttt --> HH:MM:SS:ttt; $1 is start hour; $2 is start minute; $3 is start second; $4 is start s/1000; $5 is stop hour; $6 is stop minute; $7 is stop second; $8 is stop s/1000;
Matches
00:12:35,126 --> 00:12:35,526
Non-Matches
00:59:35,126 --> 00:60:20,500 | 00:16:20,200 --> 00:16:20,30 | 01:01:01.000 --> 01:01:01.900
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Title Test Details subtitles SUB - timestamp
Expression
^\{([1-9]{1}|[1-9]{1}[0-9]{1,}){1}\}\{([1-9]{1}|[1-9]{1}[0-9]{1,}){1}\}(.*)$
Description
e. g. {11510}{11810}Blah, blah, blah.; $1 is start; $2 is stop;
Matches
{100}{150}subtitle | {1234}{1234}subtitle | {1}{2}subtitle
Non-Matches
{0100}{1000}subtitle | {}{100}subtitle | {500}{}subtitle
Author Rating: Not yet rated. Juraj Hajdúch (SK)
Change page:   |    Displaying page 1 of 2 pages; Items 1 to 20

Copyright © 2001-2024, RegexAdvice.com | ASP.NET Tutorials