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
(^([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
^(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
^[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: The rating for this expression. Henk de Vries
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
^[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
^[+]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
^([\(]{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-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
^((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
^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
(^\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
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
^(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
^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-Z][a-z]+
Description
This expression was developed to match the Title cased words within a Camel cased variable name. So it will match 'First' and 'Name' within 'strFirstName'.
Matches
strFirstName | intAgeInYears | Where the Wild Things Are
Non-Matches
123 | abc | this has no caps in it
Author Rating: Not yet rated. Steven Smith
Title Test Details Pattern Title
Expression
^([1-9]|[1-9]\d|1\d{2}|2[0-4]\d|25[0-5])$
Description
This validates a number between 1 and 255. Could be modified to IP, or just to verify a number in a range.
Matches
1 | 108 | 255
Non-Matches
01 | 256
Author Rating: Not yet rated. K Thompson
Title Test Details Pattern Title
Expression
^[a-zA-Z0-9\s.\-_']+$
Description
Alphanumeric, hyphen apostrophe, comma dash spaces
Matches
dony d'gsa
Non-Matches
^[a-zA-Z0-9\s.\-_']+$
Author Rating: Not yet rated. Sonal Bordia
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
^(\d{5}-\d{4}|\d{5})$
Description
this works with ASP.net regular expression valiadtors, ecma script compliant
Matches
12345 | 12345-1234
Non-Matches
12345-12345 | 123 | 12345-abcd
Author Rating: Not yet rated. lynn eriksen
Change page:   |    Displaying page 4 of 9 pages; Items 61 to 80

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