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 4 of 9 pages; Items 61 to 80
Title Test Details Pattern Title
Expression
^(V-|I-)?[0-9]{4}$
Description
Postcode check for Italy (including possible Vatican/Italy indications)
Matches
1234 | V-1234
Non-Matches
12345
Author Rating: The rating for this expression. Henk de Vries
Title Test Details Pattern Title
Expression
</?(\w+)(\s+\w+=(\w+|"[^"]*"|'[^']*'))*>
Description
Finds any HTML tag and sub-matches properties weather it has an apposterphee, quote, or no quote/apposterphee
Matches
<TD> | <TD bgColor="FFFFFF"> | </TD>
Non-Matches
No Tag Here ...
Author Rating: The rating for this expression. Lewis Moten
Title Test Details Pattern Title
Expression
[^abc]
Description
Matches
def
Non-Matches
abc
Author Rating: The rating for this expression. Krisada Arjinpattara
Title Test Details Pattern Title
Expression
(^([1-3]{1}[0-9]{0,}(\.[0-9]{1})?|0(\.[0-9]{1})?|[4]{1}[0-9]{0,}(\.[0]{1})?|5(\.[5]{1}))$)
Description
GPA (Grade Point Average) expression. Validates the standars 0.0 thru 4.0 and also accepts 5.5 -- which I use as unknown.
Matches
0.0 | 4.0 | 5.5
Non-Matches
0. | .9 | 4.1
Author Rating: The rating for this expression. Jay Wasser Jr
Title Test Details Pattern Title
Expression
^[+]447\d{9}$
Description
Validates a UK mobile phone number in International format
Matches
+447974405524 | +447932205578
Non-Matches
447974407726 | +4407974407724
Author Rating: The rating for this expression. Richard Slade
Title Test Details Pattern Title
Expression
(at\s)(?<fullClassName>.+)(\.)(?<methodName>[^\.]*)(\()(?<parameters>[^\)]*)(\))((\sin\s)(?<fileName>.+)(:line )(?<lineNumber>[\d]*))?
Description
Just a simple regExp to parse the stack trace. Developed when using the exception block from MS, coz they only showed the stack all bunched together. Could be used as follows: [C#] string regExParams = @"(at\s)(?<fullClassName>.+)(\.)(?<methodName>[^\.]*)(\()(?<parameters>[^\)]*)(\))((\sin\s)(?<fileName>.+)(:line )(?<lineNumber>[\d]*))?"; Regex re = new System.Text.RegularExpressions.Regex(regExParams,RegexOptions.Compiled); MatchCollection mtc; mtc = re.Matches(System.Environment.StackTrace); foreach(Match mt in mtc) { MessageBox.Show(mt.Result("${fullClassName}")); MessageBox.Show(mt.Result("${methodName}")); MessageBox.Show(mt.Result("${parameters}")); MessageBox.Show(mt.Result("${fileName}")); MessageBox.Show(mt.Result("${lineNumber}")); } Seems to work well, but use at your own peril!! Feel free to use and enhance (there's probably a lot that could be done, like getting parameters individually(?), etc)
Matches
at System.IO.__Error.WinIOError(Int32 errorCode, String str) | at ExceptionManagementQuickStartSampl
Non-Matches
ExceptionManagementQuickStartSamples.Form1.DoLogon(String userName, String password) in c:\program f
Author Rating: The rating for this expression. Mike Stancombe
Title Test Details Pattern Title
Expression
^([a-zA-Z.\s']{1,50})$
Description
This is just a regular special char expression used to get the hax0rs off your back (hopefully). You can use this for regular open name checking if you wanted. It only fails on the insert of anything other than a-z, A-Z, and ' or whitespace. I'm open to suggestions, but try to email them to me as well as posting them to help others. Thanks.
Matches
Jon M. Doe | Tim L. O'Doul | ...'''''
Non-Matches
Doe, Jon | <>,;:"?/ | %\$#@!
Author Rating: The rating for this expression. John Smart
Title Test Details Pattern Title
Expression
^([\(]{1}[0-9]{3}[\)]{1}[ |\-]{0,1}|^[0-9]{3}[\-| ])?[0-9]{3}(\-| ){1}[0-9]{4}$
Description
Validates US phone numbers. Phone number can be delimited with dashes or spaces. Area code can optionally include parentheses. To optionally validate area codes, try this expression. ^([\(]{1}[0-9]{3}[\)]{1}[ |\-]{0,1}|^[0-9]{3}[\-| ])?[0-9]{3}(\-| ){1}[0-9]{4}$
Matches
(111) 223-2332 | (222)233-2332 | 232-323-3233
Non-Matches
(ddd) 223-2332 | 222-232/2333 | 322-3223-222
Author Rating: The rating for this expression. gabe g
Title Test Details Pattern Title
Expression
^[A-Za-z]{6}[0-9]{2}[A-Za-z]{1}[0-9]{2}[A-Za-z]{1}[0-9]{3}[A-Za-z]{1}$
Description
This pattern match italian fiscal code (codice fiscale).
Matches
SPGGRG73A02E625S | czzdll74h18f205w
Non-Matches
SP6FFFF3A02E625S | czzdll74h18f205
Author Rating: The rating for this expression. Giorgio Spugnesi
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
^([1-9]{2}|[0-9][1-9]|[1-9][0-9])[0-9]{3}$
Description
Postcode check for Spain
Matches
12345 | 10234 | 01234
Non-Matches
00123
Author Rating: Not yet rated. Henk de Vries
Title Test Details Pattern Title
Expression
^\{?[a-fA-F\d]{8}-([a-fA-F\d]{4}-){3}[a-fA-F\d]{12}\}?$
Description
Validates a GUID with and without brackets. 8,4,4,4,12 hex characters seperated by dashes.
Matches
{e02ff0e4-00ad-090A-c030-0d00a0008ba0} | e02ff0e4-00ad-090A-c030-0d00a0008ba0
Non-Matches
0xe02ff0e400ad090Ac0300d00a0008ba0
Author Rating: Not yet rated. Lewis Moten
Title Test Details Pattern Title
Expression
^((0?[1-9])|((1|2)[0-9])|30|31)$
Description
matches any day of month 0?1-31
Matches
01 | 12 | 31
Non-Matches
123 | 32 | abc
Author Rating: Not yet rated. Serafeim Zanikolas
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
^(F-)?((2[A|B])|[0-9]{2})[0-9]{3}$
Description
Postcode check for France (including colonies) ----- Edited; sorry I didn't know about Corsica, no offense :)
Matches
12345 | F-12345 | F-2B100
Non-Matches
F12345 | F-123456 | 123456
Author Rating: Not yet rated. Henk de Vries
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: Not yet rated. Felix Osegueda
Title Test Details Pattern Title
Expression
^0[23489]{1}(\-)?[^0\D]{1}\d{6}$
Description
Regular Expression that validate a phone number inside israel.
Matches
03-6106666 | 036106666 | 02-5523344
Non-Matches
00-6106666 | 03-0106666 | 02-55812346
Author Rating: Not yet rated. Al Val
Title Test Details Pattern Title
Expression
^0(5[012345678]|6[47]){1}(\-)?[^0\D]{1}\d{5}$
Description
Regular Expression that validate Cellular phone in israel.
Matches
050-346634 | 058633633 | 064-228226
Non-Matches
059-336622 | 064-022663 | 0545454545
Author Rating: Not yet rated. Al Val
Title Test Details Pattern Title
Expression
^([A-HJ-TP-Z]{1}\d{4}[A-Z]{3}|[a-z]{1}\d{4}[a-hj-tp-z]{3})$
Description
Codigos Postales Argentinos (CPA) This expression defines the new zip code format for Argentina.
Matches
C1406HHA | A4126AAB | c1406hha
Non-Matches
c1406HHA | 4126 | C1406hha
Author Rating: Not yet rated. Gabriel Garcia
Title Test Details Pattern Title
Expression
^(/w|/W|[^<>+?$%{}&])+$
Description
simple expression for excluding a given list of characters. simply change the contents of [^] to suite your needs. for example ^(/w|/W|[^&lt;&gt;])+$ would allow everything except the characters &lt; and &gt;.
Matches
John Doe Sr. | 100 Elm St., Suite 25 | Valerie's Gift Shop
Non-Matches
<h1>Hey</h1>
Author Rating: Not yet rated. Glenn Caccia
Change page:   |    Displaying page 4 of 9 pages; Items 61 to 80

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