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

Please support RegExLib Sponsors

Sponsors

Browse Expressions by Category

173 regular expressions found in this category!

Expressions in category: Misc

Change page:   |    Displaying page 8 of 9 pages; Items 141 to 160
Title Test Details Pattern Title
Expression
^[A-Z]{2}[0-9]{6}[A-DFM]{1}$
Description
UK National Insurance Number (NINO) validation. (The following modifications have been made: Only A to D are permitted as the last letter, and all letters should be in uppercase. For temporary numbers F and M are permitted for female and male holders.)
Matches
AB123456D | AB123456F | AB123456M
Non-Matches
AB123456E | ab123456d
Author Rating: Not yet rated. Peter Whyte
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: Not yet rated. Gerald Martin
Title Test Details Pattern Title
Expression
(("|')[a-z0-9\/\.\?\=\&]*(\.htm|\.asp|\.php|\.jsp)[a-z0-9\/\.\?\=\&]*("|'))|(href=*?[a-z0-9\/\.\?\=\&"']*)
Description
Will locate an URL in a webpage. It'll search in 2 ways - first it will try to locate a href=, and then go to the end of the link. If there is nu href=, it will search for the end of the file instead (.asp, .htm and so on), and then take the data between the "xxxxxx" or 'xxxxxx'
Matches
href="produktsida.asp?kategori2=218" | href="NuclearTesting.htm"
Non-Matches
U Suck
Author Rating: Not yet rated. Henric Rosvall
Title Test Details Pattern Title
Expression
^0[1-6]{1}(([0-9]{2}){4})|((\s[0-9]{2}){4})|((-[0-9]{2}){4})$
Description
Regular Expression that validate phone in France.
Matches
01 46 70 89 12 | 01-46-70-89-12 | 0146708912
Non-Matches
01-46708912 | 01 46708912 | +33235256677
Author Rating: Not yet rated. Bertrand Perrin
Title Test Details Pattern Title
Expression
(?:\d|I{1,3})?\s?\w{2,}\.?\s*\d{1,}\:\d{1,}-?,?\d{0,2}(?:,\d{0,2}){0,2}
Description
This RE validates standard Bible verse notation.
Matches
Genesis 3:3-4,6 | II Sam 2:11,2 | 2 Tim 3:16
Non-Matches
Genesis chap 3, verse 3 | 2nd Samuel 2
Author Rating: Not yet rated. Scott Kahler
Title Test Details Pattern Title
Expression
^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$
Description
Regular expression to match valid UK postcodes. In the UK postal system not all letters are used in all positions (the same with vehicle registration plates) and there are various rules to govern this. This regex takes into account those rules. Details of the rules: First half of postcode Valid formats [A-Z][A-Z][0-9][A-Z] [A-Z][A-Z][0-9][0-9] [A-Z][0-9][0-9] [A-Z][A-Z][0-9] [A-Z][A-Z][A-Z] [A-Z][0-9][A-Z] [A-Z][0-9] Exceptions Position - First. Contraint - QVX not used Position - Second. Contraint - IJZ not used except in GIR 0AA Position - Third. Constraint - AEHMNPRTVXY only used Position - Forth. Contraint - ABEHMNPRVWXY Second half of postcode Valid formats [0-9][A-Z][A-Z] Exceptions Position - Second and Third. Contraint - CIKMOV not used
Matches
DN3 6GB | SW42 4RG | GIR 0AA
Non-Matches
SEW4 5TY | AA2C 4FG | AA2 4CV
Author Rating: Not yet rated. Stuart Wade
Title Test Details Pattern Title
Expression
^[0-9A-Za-z_ ]+(.[jJ][pP][gG]|.[gG][iI][fF])$
Description
Matches HTML image leaf filenames.
Matches
good.gif | go d.GIf | goo_d.jPg
Non-Matches
junk | bad.bad.gif | slash\gif.
Author Rating: Not yet rated. Geoffrey Swenson
Title Test Details Pattern Title
Expression
^\d{3,3}\.\d{0,2}$|^E\d{3,3}\.\d{0,2}$
Description
ICD9 code pattern
Matches
E123. | 123.0 | 045.23
Non-Matches
b123. | 3456.0
Author Rating: Not yet rated. Zeljko Stanfel
Title Test Details Pattern Title
Expression
\w?<\s?\/?[^\s>]+(\s+[^"'=]+(=("[^"]*")|('[^\']*')|([^\s"'>]*))?)*\s*\/?>
Description
Matches tags
Matches
<world www="hello" />
Non-Matches
<>>>world www="hello" />
Author Rating: Not yet rated. Darren Neimke
Title Test Details Pattern Title
Expression
^(?(^00000(|-0000))|(\d{5}(|-\d{4})))$
Description
US zip code expression that disallows 00000 or 00000-0000 for either ZIP or ZIP+4. Great for web site validation.
Matches
12345 | 12345-6789
Non-Matches
00000 | 00000-0000 | a4650-465s
Author Rating: Not yet rated. Paul Duncan
Title Test Details Pattern Title
Expression
^([0-1]([\s-./\\])?)?(\(?[2-9]\d{2}\)?|[2-9]\d{3})([\s-./\\])?(\d{3}([\s-./\\])?\d{4}|[a-zA-Z0-9]{7})$
Description
It checks for Valid US Phone numbers. Accepts &amp;amp;amp;quot;.&amp;amp;amp;quot;,Space,\,/,- as delim.
Matches
1.222.333.1234 | 1-223-123-1232 | 12223334444
Non-Matches
1.1.123123.123 | 12-1322-112-31 | 11231321131
Author Rating: Not yet rated. Amit Deshpande
Title Test Details Pattern Title
Expression
[^abc]
Description
Matches
def
Non-Matches
abc
Author Rating: Not yet rated. Krisada Arjinpattara
Title Test Details Pattern Title
Expression
^([ \u00c0-\u01ffa-zA-Z'])+$
Description
Expression to match names and dis-allow any attempts to send evil characters. In particular, it tries to allow non-english names by allowing unicode characters.
Matches
Jon Doe | Jørn | Mc'Neelan
Non-Matches
Henry); hacking attempt
Author Rating: Not yet rated. tom ferguson
Title Test Details Pattern Title
Expression
^([0-1]([\s-./\\])?)?(\(?[2-9]\d{2}\)?|[2-9]\d{3})([\s-./\\])?([0-9]{3}([\s-./\\])?[0-9]{4}|[a-zA-Z0-9]{7}|([0-9]{3}[-][a-zA-Z0-9]{4}))
Description
USA Alhpanumeric Valid Phone numbers
Matches
1.222.333.1234 | 1-223-123-1232 | 1-888-425-DELL
Non-Matches
1.1.123123.123 | 12-1322-112-31 | 1-800-CALL-DEL
Author Rating: Not yet rated. Amit Deshpande
Title Test Details Pattern Title
Expression
(\{\\f\d*)\\([^;]+;)
Description
This pattern returns the font section from an RTF document. The first parenthetical subexpression captures the font number, the second returns the actual font enumeration. Lame-o, but fun! :-)
Matches
{\f0\Some Font names here; | {\f1\fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial; | {\f
Non-Matches
{f0fs20 some text}
Author Rating: Not yet rated. Joel Dooris
Title Test Details Pattern Title
Expression
^([A-Z]{1,2}[0-9]{1,2}|[A-Z]{3}|[A-Z]{1,2}[0-9][A-Z])( |-)[0-9][A-Z]{2}
Description
Checks whether the string specified is in the same format as the UK postcode format defined on: http://www.magma.ca/~djcl/postcd.txt It allows: A = Letter N = Number AN NAA, ANA NAA, ANN NAA, AAN NAA, AAA NAA (rare), AANN NAA, AANA NAA It gives the option to have the two parts of the uk postcode to be separated by a space or a hyphen. (restriction is set to all-capitals)
Matches
AA11 1AA | AA1A 1AA | A11-1AA
Non-Matches
111 AAA | 1AAA 1AA | A1AA 1AA
Author Rating: Not yet rated. Henk de Vries
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: Not yet rated. Fernando Cerqueira
Title Test Details Pattern Title
Expression
^[A-Z]{1}( |-)?[1-9]{1}[0-9]{3}$
Description
Postcode for Germany
Matches
A-1234 | A 1234 | A1234
Non-Matches
AA-1234 | A12345
Author Rating: Not yet rated. Henk de Vries
Title Test Details Pattern Title
Expression
^[1-9]{1}[0-9]{3}$
Description
Postcode for Belgium
Matches
1234
Non-Matches
123 | 123A
Author Rating: Not yet rated. Henk de Vries
Title Test Details Pattern Title
Expression
(^\d{5}-\d{3}|^\d{2}.\d{3}-\d{3}|\d{8})
Description
Validar o do CEP Brasileiro com 8 posicoes podendo usar mascara . e - ou somente numeros
Matches
12.345-678 | 12345-678 | 12345678
Non-Matches
12.345678 | 12345-1 | 123
Author Rating: Not yet rated. Fernando Cerqueira
Change page:   |    Displaying page 8 of 9 pages; Items 141 to 160

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