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 3 of 9 pages; Items 41 to 60
Title Test Details Pattern Title
Expression
\u221E
Description
Matches infinity symbol. Pretty simple, yet I dont think existed on RegExLib before.
Matches
8
Non-Matches
anything else
Author Rating: The rating for this expression. Roman Lukyanenko
Title Test Details Pattern Title
Expression
\u00A3
Description
Matches the British Pound symbol. Pretty simple, yet I dont think existed on RegExLib before.
Matches
£
Non-Matches
anything else
Author Rating: The rating for this expression. Roman Lukyanenko
Title Test Details Pattern Title
Expression
\u20AC
Description
Matches the Euro sign. Pretty simple, yet I dont think existed on RegExLib before.
Matches
Non-Matches
anything else
Author Rating: The rating for this expression. Roman Lukyanenko
Title Test Details Pattern Title
Expression
\u00A5
Description
Matches the Yen sign. Pretty simple, yet I dont think existed on RegExLib before.
Matches
¥
Non-Matches
anything else
Author Rating: The rating for this expression. Roman Lukyanenko
Title Test Details Pattern Title
Expression
[:]{1}[-~+o]?[)>]+
Description
This ist the Expression for a happy smiley. It should find all the usual writings of the emotion icon :)
Matches
:))))) | :+> | :o)
Non-Matches
;o) | :-(
Author Rating: The rating for this expression. Ullrich Clemenz Canaan
Title Test Details Pattern Title
Expression
^(([a-zA-Z]:|\\)\\)?(((\.)|(\.\.)|([^\\/:\*\?"\|<>\. ](([^\\/:\*\?"\|<>\. ])|([^\\/:\*\?"\|<>]*[^\\/:\*\?"\|<>\. ]))?))\\)*[^\\/:\*\?"\|<>\. ](([^\\/:\*\?"\|<>\. ])|([^\\/:\*\?"\|<>]*[^\\/:\*\?"\|<>\. ]))?$
Description
File Name Validator. Validates both UNC (\\server\share\file) and regular MS path (c:\file).
Matches
File.txt | c:\Blah\..\.\Blah Blah.Blah\File.txt | \\server\share\file.txt
Non-Matches
File.txt | c:\.File.txt | c:\.\.Blah\File.txt
Author Rating: The rating for this expression. Dmitry Borysov
Title Test Details Pattern Title
Expression
^[1-9]{1}[0-9]{3} ?[A-Z]{2}$
Description
Postcode check for Netherlands
Matches
1234 AB | 1234AB
Non-Matches
123AB | 1234AAA
Author Rating: The rating for this expression. Henk de Vries
Title Test Details Pattern Title
Expression
,(?!(?<=(?:^|,)\s*\x22(?:[^\x22]|\x22\x22|\\\x22)*,)(?:[^\x22]|\x22\x22|\\\x22)*\x22\s*(?:,|$))
Description
This regex can be used to split the values of a comma delimitted list. List elements may be quoted, unquoted or empty. Commas inside a pair of quotation marks are not matched.
Matches
1,,3""but, wait",5 | 1,2,3
Non-Matches
"Test""a,b,c,d""ing" | no comma | semi; colon
Author Rating: The rating for this expression. Michael Ash
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
(^([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
&lt;/?(\w+)(\s+\w+=(\w+|&quot;[^&quot;]*&quot;|'[^']*'))*&gt;
Description
Finds any HTML tag and sub-matches properties weather it has an apposterphee, quote, or no quote/apposterphee
Matches
&lt;TD&gt; | &lt;TD bgColor=&quot;FFFFFF&quot;&gt; | &lt;/TD&gt;
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
^[+]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-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
(at\s)(?&lt;fullClassName&gt;.+)(\.)(?&lt;methodName&gt;[^\.]*)(\()(?&lt;parameters&gt;[^\)]*)(\))((\sin\s)(?&lt;fileName&gt;.+)(:line )(?&lt;lineNumber&gt;[\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 = @&quot;(at\s)(?&lt;fullClassName&gt;.+)(\.)(?&lt;methodName&gt;[^\.]*)(\()(?&lt;parameters&gt;[^\)]*)(\))((\sin\s)(?&lt;fileName&gt;.+)(:line )(?&lt;lineNumber&gt;[\d]*))?&quot;; 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(&quot;${fullClassName}&quot;)); MessageBox.Show(mt.Result(&quot;${methodName}&quot;)); MessageBox.Show(mt.Result(&quot;${parameters}&quot;)); MessageBox.Show(mt.Result(&quot;${fileName}&quot;)); MessageBox.Show(mt.Result(&quot;${lineNumber}&quot;)); } 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 | &lt;&gt;,;:&quot;?/ | %\$#@!
Author Rating: The rating for this expression. John Smart
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: The rating for this expression. Paul Duncan
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: The rating for this expression. tom ferguson
Change page:   |    Displaying page 3 of 9 pages; Items 41 to 60

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