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 1 of 9 pages; Items 1 to 20
Title Test Details Pattern Title
Expression
^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$
Description
A regular expression to match phone numbers, allowing for an international dialing code at the start and hyphenation and spaces that are sometimes entered.
Matches
(+44)(0)20-12341234 | 02012341234 | +44 (0) 1234-1234
Non-Matches
(44+)020-12341234 | 12341234(+020)
Author Rating: The rating for this expression. James Burton
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: The rating for this expression. Sonal Bordia
Title Test Details Pattern Title
Expression
^[A-Za-z]{6}[0-9LMNPQRSTUV]{2}[A-Za-z]{1}[0-9LMNPQRSTUV]{2}[A-Za-z]{1}[0-9LMNPQRSTUV]{3}[A -Za-z]{1}$
Description
Check italian fiscal code (codice fiscale) with "OMOCODIA" control
Matches
BTTNDR78R06A79QU
Non-Matches
BTTNDR78R06A79AU
Author Rating: The rating for this expression. andrea mele
Title Test Details Pattern Title
Expression
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).{4,8}$
Description
Password expresion that requires one lower case letter, one upper case letter, one digit, 6-13 length, and no spaces. This is merely an extension of a previously posted expression by Steven Smith (ssmith@aspalliance.com) . The no spaces is new.
Matches
1agdA*$# | 1agdA*$# | 1agdA*$#
Non-Matches
wyrn%@*&$# f | mbndkfh782 | BNfhjdhfjd&*)%#$)
Author Rating: The rating for this expression. Jeremy Samuel
Title Test Details Pattern Title
Expression
^(\+[1-9][0-9]*(\([0-9]*\)|-[0-9]*-))?[0]?[1-9][0-9\- ]*$
Description
International phone number check - optional country code followed by area code surrounded with '-' or '(' and ')', or just an area code optionally starting with 0, followed by phone numder. The number itself may contain spaces and '-'
Matches
+123(45)678-910 | +123-045-67 89 10 | 01-234-56-78
Non-Matches
123(45)678 91011 | (12)345-678 | +0(12)345-6789
Author Rating: The rating for this expression. Dmitry Kandiner
Title Test Details Pattern Title
Expression
\u2122
Description
Matches the ™ 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
^\d{5}(-\d{4})?$
Description
Matches standard 5 digit US Zip Codes, or the US ZIP + 4 Standard.
Matches
48222 | 48222-1746
Non-Matches
4632 | Blake | 37333-32
Author Rating: The rating for this expression. Blake Facey
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-z0-9]{32})$
Description
Matches a md5 hash, simple yet powerful
Matches
790d2cf6ada1937726c17f1ef41ab125
Non-Matches
790D2CF6ADA1937726C17F1EF41AB125 | 790d2cf6ada1937726c17f1ef41ab125f6k
Author Rating: The rating for this expression. Thijs Wijnmaalen
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
\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
\u00AE
Description
Matches the registered trademark (®). 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
,(?!(?<=(?:^|,)\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
^(([\w][\w\-\.]*)\.)?([\w][\w\-]+)(\.([\w][\w\.]*))?$
Description
Is used to evaluating domain names, none of the extras such as paths or protocols.
Matches
zigamorph.com | www.zigamorph.com | localhost
Non-Matches
http://www.zigamorph.com | ftp://zigamorph.com | localhost/default.aspx
Author Rating: The rating for this expression. Nicholas Berardi
Title Test Details Pattern Title
Expression
^[{|\(]?[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}[\)|}]?$
Description
Specifier Format of Guid Values that this RegEx supports: 32 digits: [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx] 32 digits separated by hyphens: [xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx] 32 digits separated by hyphens, enclosed in brackets: [{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}] 32 digits separated by hyphens, enclosed in parentheses: [(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)]
Matches
914D226A-2F5B-4944-934D-96BBE6571977 | {914D226A-2F5B-4944-934D-96BBE6571977}
Non-Matches
914D226A-2F5B-4944-XXXX-96BBE6571977 | {914D226A-2F5B-4944-XXXX-96BBE6571977}
Author Rating: The rating for this expression. Nicholas Berardi
Title Test Details Pattern Title
Expression
^([0-1])*$
Description
Expression validating a Binary string of any length
Matches
10101000 | 01010000 | 100000001
Non-Matches
01000200 | 00021000 | e10000000
Author Rating: The rating for this expression. Cliff Wagner
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
\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
(\[[Ii][Mm][Gg]\])(\S+?)(\[\/[Ii][Mm][Gg]\])
Description
easy when you want to allow your users to post images, but in a controlled way. I used it like this (in php): $text = preg_replace(&quot;/(\[IMG\])(\S+?)(\[\/IMG\])/is&quot;, &quot;&lt;a href=\&quot;\\2\&quot; target=\&quot;_blank\&quot;&gt;&lt;IMG SRC=\&quot;\\2\&quot; align=\&quot;center\&quot; height=\&quot;100\&quot; border=\&quot;0\&quot;&gt;&lt;/a&gt;&quot;,$text); so whenever they use [img]http://www.foo.com/bleh.jpg[/img] it will be converted to &lt;a href=&quot;http://www.foo.com/bleh.jpg&quot; target=&quot;_blank&quot;&gt;&lt;IMG SRC=&quot;http://www.foo.com/bleh.jpg&quot; align=&quot;center&quot; height=&quot;100&quot; border=&quot;0&quot;&gt;&lt;/a&gt; so you get a 100 pixels high picture, and when they click on it it opens in a new window... (to prevent users from posting huge pictures and stuff)
Matches
[IMG]http://bleh.jpg[/IMG] | [ImG]bleh[/imG] | [img]ftp://login:pass@bleh.gif[/img]
Non-Matches
&lt;img src=&quot;bleh.jpg&quot;&gt;
Author Rating: The rating for this expression. marnik vander elst
Change page:   |    Displaying page 1 of 9 pages; Items 1 to 20

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