173 regular expressions found in this category!
Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^([A-Za-z]\d[A-Za-z][-]?\d[A-Za-z]\d) |
Description |
Regular expression to match a canadian postal code where it matches a string with or without the hyphen and in upercase or lowercase |
Matches |
a1a-1a1 | A1A1A1 |
Non-Matches |
1a1-a1a | aaa-aaa | 111-111 |
Author |
Rating:
Rico lour
|
Title |
Test
Details
Pattern Title
|
Expression |
<img([^>]*[^/])> |
Description |
Use this along with this replacement string <img\1 /> to convert image tags to XHTML compliant image tags.
|
Matches |
<img src="bob"> |
Non-Matches |
<img src="bob" /> |
Author |
Rating:
Murray Roke
|
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:
andrea mele
|
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:
Roman Lukyanenko
|
Title |
Test
Details
Pattern Title
|
Expression |
^([0-9]{2})?(\([0-9]{2})\)([0-9]{3}|[0-9]{4})-[0-9]{4}$ |
Description |
A simple expression to brazilian phone number code, with international code.
Simple DDI without "+" 99 plus simple DDD (99) plus simple local phone number 3 or 4 digits plus "-" plus 4 digits. |
Matches |
55(21)123-4567 | (11)1234-5678 | 55(71)4562-2234 |
Non-Matches |
3434-3432 | 4(23)232-3232 | 55(2)232-232 |
Author |
Rating:
Rafael Miranda
|
Title |
Test
Details
Pattern Title
|
Expression |
\d{4}-?\d{4}-?\d{4}-?\d{4} |
Description |
Major credit card validator. Only checks that the format is 16 digits (optionally separated by hyphens), not the value of any of the digits. |
Matches |
1234-1234-1234-1234 | 1234123412341234 |
Non-Matches |
1234123412345 |
Author |
Rating:
Steven Smith
|
Title |
Test
Details
Pattern Title
|
Expression |
\b(([01]?\d?\d|2[0-4]\d|25[0-5])\.){3}([01]?\d?\d|2[0-4]\d|25[0-5])\b |
Description |
Most Concise RegExp for matching Decimal IPs. If nothing else, it'll make your code easier to read. (And I know that \d?\d is \d{1,2} but that's 2 extra characters.)
--Update: darkone noticed 8 characters could be shaved down. I've edited it to reflect this. Thanks, darkone! |
Matches |
217.6.9.89 | 0.0.0.0 | 255.255.255.255 |
Non-Matches |
256.0.0.0 | 0978.3.3.3 | 65.4t.54.3 |
Author |
Rating:
Sean Schricker
|
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:
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:
Roman Lukyanenko
|
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:
Roman Lukyanenko
|
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:
Roman Lukyanenko
|
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:
Nicholas Berardi
|
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:
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:
Michael Ash
|
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:
Dmitry Borysov
|
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:
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:
Ullrich Clemenz Canaan
|
Title |
Test
Details
Pattern Title
|
Expression |
^\D?(\d{3})\D?\D?(\d{3})\D?(\d{4})$ |
Description |
This RegEx requires a US phone number WITH area code. It is written to all users to enter whatever delimiters they want or no delimiters at all (i.e. 111-222-3333, or 111.222.3333, or (111) 222-3333, or 1112223333, etc...). |
Matches |
(111) 222-3333 | 1112223333 | 111-222-3333 |
Non-Matches |
11122223333 | 11112223333 | 11122233333 |
Author |
Rating:
Laurence O'Donnell
|
Title |
Test
Details
Pattern Title
|
Expression |
^([A-Z|a-z]{2}\s{1}\d{2}\s{1}[A-Z|a-z]{1,2}\s{1}\d{1,4})?([A-Z|a-z]{3}\s{1}\d{1,4})?$ |
Description |
It validates Indian Vehicle Registration Number |
Matches |
mh 12 bj 1780 | mmx 1234 |
Non-Matches |
mmm 123 1234 | mm 12 bj 345 | mm 12345 |
Author |
Rating:
himraj love
|
Title |
Test
Details
Pattern Title
|
Expression |
(\/\/-->\s*)?<\/?SCRIPT([^>]*)>(\s*<!--\s)? |
Description |
Can be used to remove
&amp;lt;SCRIPT language=&amp;quot;JavaScript&amp;quot;&amp;gt;
&amp;lt;!--
//--&amp;gt;
&amp;lt;/SCRIPT&amp;gt;
from embeded javascript
Should be used as case insensitive |
Matches |
<SCRIPT language="JavaScript"> <!-- //--> </SCRIPT> | <SCRIPT l |
Non-Matches |
<!-- //--> |
Author |
Rating:
Mike t
|
Displaying page
of
pages;
Items to