173 regular expressions found in this category!
Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
(^.+\|+[A-Za-z]) |
Description |
Anti-Spam/Spam stopper: Detects all words with the character "|" instead of an "l" or "1" |
Matches |
| comp|eted | fu|l-sized | annua|ly |
Non-Matches |
www.fireflyfx.net | www.trustmusic.nl |
Author |
Rating:
Not yet rated.
Louis Ostendorf
|
Title |
Test
Details
Simple Microsoft Product Key
|
Expression |
^[A-Z1-9]{5}-[A-Z1-9]{5}-[A-Z1-9]{5}-[A-Z1-9]{5}-[A-Z1-9]{5}$ |
Description |
Simple Microsoft product key check. |
Matches |
12345-12345-12345-12345-12345 | ABCDE-ABCDE-ABCDE-ABCDE-ABCDE | AB5DE-AB5DE-AB5DE-AB5DE-AB5DE |
Non-Matches |
12345-123-123456-12345 | ABC-ABCDEF-ABCDE-ABCDE | 12AB5-ABC-12AB567-12AB5 |
Author |
Rating:
Not yet rated.
Amos Hurd
|
Title |
Test
Details
Pattern Title
|
Expression |
((\(\d{3}\) ?)|(\d{3}-))?\d{3}-\d{4} |
Description |
US Phone Number -- doesn't check to see if first digit is legal (not a 0 or 1). |
Matches |
(123) 456-7890 | 123-456-7890 |
Non-Matches |
1234567890 |
Author |
Rating:
Not yet rated.
Steven Smith
|
Title |
Test
Details
Strongish Password
|
Expression |
^[a-zA-Z]\w{3,14}$ |
Description |
The password's first character must be a letter, it must contain at least 4 characters and no more than 15 characters and no characters other than letters, numbers and the underscore may be used |
Matches |
abcd | aBc45DSD_sdf | password |
Non-Matches |
afv | 1234 | reallylongpassword |
Author |
Rating:
Not yet rated.
Steven Smith
|
Title |
Test
Details
Alphanumeric
|
Expression |
^[a-zA-Z0-9]+$ |
Description |
Matches any alphanumeric string (no spaces). |
Matches |
10a | ABC | A3fg |
Non-Matches |
45.3 | this or that | $23 |
Author |
Rating:
Not yet rated.
Steven Smith
|
Title |
Test
Details
Pattern Title
|
Expression |
^[a-zA-Z0-9\s.\-]+$ |
Description |
ANY alphanumeric string with spaces, commas, dashes. |
Matches |
2222 Mock St. | 1 A St. | 555-1212 |
Non-Matches |
[A Street] | (3 A St.) | {34 C Ave.} |
Author |
Rating:
Not yet rated.
Mart Maasikas
|
Title |
Test
Details
Pattern Title
|
Expression |
Last.*?(\d+.?\d*) |
Description |
Plucks the last quote of a Stock from the MSN MoneyCentral WebQuote page for any given stock symbol. The URL of the web page where this RegEx should be applied is:
http://localhost/asp/webquote.htm?ipage=qd&Symbol=,give the stock symbol here> You must also use the singleline option. |
Matches |
<TR><TD ALIGN=RIGHT>&nbsp;</TD><TD>Last</TD><TD ALIGN=RIGHT NOW |
Non-Matches |
[AADDSS] |
Author |
Rating:
Not yet rated.
Prasad DV
|
Title |
Test
Details
Pattern Title
|
Expression |
^[A-Z0-9]{8}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{4}-[A-Z0-9]{12}$ |
Description |
GUID Tester. It tests SQL Server GUIDs, which are alphanumeric characters grouped 8-4-4-4-12 (with the dashes). Make sure they don't have the brackets around them before you check them and have fun! |
Matches |
4D28C5AD-6482-41CD-B84E-4573F384BB5C | B1E1282C-A35C-4D5A-BF8B-7A3A51D9E388 | 91036A4A-A0F4-43F0-8CD |
Non-Matches |
{B1E1282C-A35C-4D3A-BF8B-7A3A51D9E388} | AAAAAAAAAAAAAAAAA | B;E1282C-A35C-4D3A-BF8B-7A3A51D9E38 |
Author |
Rating:
Not yet rated.
James Bray
|
Title |
Test
Details
Pattern Title
|
Expression |
\b(\w+)\s+\1\b |
Description |
Uses backreferences and word boundaries to match repeated words seperated by whitespace without matching a word with the same ending as the next words beginning.
|
Matches |
Tell the the preacher | some some | hubba hubba |
Non-Matches |
once an annual report | mandate dated submissions | Hubba hubba |
Author |
Rating:
Not yet rated.
Sean Carley
|
Title |
Test
Details
Pattern Title
|
Expression |
^[0-9]{4}\s{0,1}[a-zA-Z]{2}$ |
Description |
Regular expression to evaluate dutch zipcodes. This is an updated version of Roland Mensenkamp. |
Matches |
2034AK | 2034 AK | 2034 ak |
Non-Matches |
2034 AK | 321321 AKSSAA |
Author |
Rating:
Not yet rated.
Jon van Leuven
|
Title |
Test
Details
Pattern Title
|
Expression |
^([0-9]{6}[\s\-]{1}[0-9]{12}|[0-9]{18})$ |
Description |
This regular expression matches 'Switch' card numbers - a payment method used extensively in the UK. |
Matches |
000000 000000000000 | 000000-000000000000 | 000000000000000000 |
Non-Matches |
000000_000000000000 |
Author |
Rating:
Not yet rated.
Scott Frampton
|
Title |
Test
Details
Pattern Title
|
Expression |
^.{4,8}$ |
Description |
Matches any string between 4 and 8 characters in length. Limits the length of a string. Useful to add to password regular expressions. |
Matches |
asdf | 1234 | asdf1234 |
Non-Matches |
asd | 123 | asdfe12345 |
Author |
Rating:
Not yet rated.
Steven Smith
|
Title |
Test
Details
Pattern Title
|
Expression |
^(user=([a-z0-9]+,)*(([a-z0-9]+){1});)?(group=([a-z0-9]+,)*(([a-z0-9]+){1});)?(level=[0-9]+;)?$ |
Description |
This re was used for a security routine. The format is:
[user=name1,name2,...,nameN;][group=group1,group2,...,groupN;][level=number;]
Each component is optional, but they must appear the in order listed if applicable. |
Matches |
user=foo,bar,quux;group=manager,admin;level=100; | group=nobody;level=24; |
Non-Matches |
user=foo | blahh |
Author |
Rating:
Not yet rated.
Michael Scovetta
|
Title |
Test
Details
Pattern Title
|
Expression |
(?-i:\b\p{Ll}+\b) |
Description |
This pattern matches lower-case letters |
Matches |
test | holã | p |
Non-Matches |
Test | 123 | ?S |
Author |
Rating:
Not yet rated.
Michael Ash
|
Title |
Test
Details
Pattern Title
|
Expression |
(?-i:\b\p{Lu}+\b) |
Description |
Matches uppercase unicode alpha characters |
Matches |
ABCDE | ??G?? | Æ |
Non-Matches |
abc | aß?d | æ |
Author |
Rating:
Not yet rated.
Michael Ash
|
Title |
Test
Details
Pattern Title
|
Expression |
\p{IsBasicLatin} |
Description |
Matches any character is the Basic Latin Unicode Range \U0000-U007F (Ascii 0-127)
I've blogged about this and other expressions here http://blogs.regexadvice.com/mash/archive/2004/04/17/988.aspx |
Matches |
ABCxyz | 123 | +-= |
Non-Matches |
? | ? | ? |
Author |
Rating:
Not yet rated.
Michael Ash
|
Title |
Test
Details
Pattern Title
|
Expression |
\p{N} |
Description |
Matches numbers. Note: the second match (?) and the second non-match (IV) are not the same. I cover this in more detail here http://blogs.regexadvice.com/mash/archive/2004/04/17/988.aspx |
Matches |
123890 | ? | ½ |
Non-Matches |
AAABB | IV | Ten |
Author |
Rating:
Not yet rated.
Michael Ash
|
Title |
Test
Details
Pattern Title
|
Expression |
\p{Sm} |
Description |
Math Symbols. NOTE: the second examples of match and non-match are not the same. The non-match is the keyboard dash. The match is the unicode minus sign.
|
Matches |
+= | - | ± v = |
Non-Matches |
1 | - | 1x2 |
Author |
Rating:
Not yet rated.
Michael Ash
|
Title |
Test
Details
Pattern Title
|
Expression |
([0-1][0-9]|2[0-3]):[0-5][0-9] |
Description |
Validate an hour entry to be between 00:00 and 23:59 |
Matches |
00:00 | 13:59 | 23:59 |
Non-Matches |
24:00 | 23:60 |
Author |
Rating:
Not yet rated.
Steve Charland
|
Title |
Test
Details
Pattern Title
|
Expression |
^0[1-6]{1}(([0-9]{2}){4})|((\s[0-9]{2}){4})|((-[0-9]{2}){4})$ |
Description |
Regular Expression that validate phone in France. |
Matches |
01 46 70 89 12 | 01-46-70-89-12 | 0146708912 |
Non-Matches |
01-46708912 | 01 46708912 | +33235256677 |
Author |
Rating:
Not yet rated.
Bertrand Perrin
|
Displaying page
of
pages;
Items to