91 regular expressions found in this category!
Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^([A-Z|a-z|&]{3}\d{2}((0[1-9]|1[012])(0[1-9]|1\d|2[0-8])|(0[13456789]|1[012])(29|30)|(0[13578]|1[02])31)|([02468][048]|[13579][26])0229)(\w{2})([A|a|0-9]{1})$|^([A-Z|a-z]{4}\d{2}((0[1-9]|1[012])(0[1-9]|1\d|2[0-8])|(0[13456789]|1[012])(29|30)|(0[13578]|1[02])31)|([02468][048]|[13579][26])0229)((\w{2})([A|a|0-9]{1})){0,3}$ |
Description |
Registro Federal de Contribuyentes (RFC) , used in Mexico as a unique set of caracters for a person or corporation registration .
Registro Federal de Contribuyentes utilizado en Mexico para el registro en hacienda. |
Matches |
ABCD790419 | ABC790419aa1 | ABCD790419AB1 |
Non-Matches |
AB790419 | A12790419 | ABC791332 |
Author |
Rating:
Leo Hinojosa
|
Title |
Test
Details
Pattern Title
|
Expression |
[v,V,(\\/)](\W|)[i,I,1,l,L](\W|)[a,A,@,(\/\\)](\W|)[g,G](\W|)[r,R](\W|)[a,A,@,(\/\\))] |
Description |
Spam trap
Catches many and many way to write viagra (replacing letters with similar chars, spacing chars with one space, etc). |
Matches |
Viagra | v1@G R /\ | \/iagr@ |
Non-Matches |
viaagra | vi agra | v1 gra |
Author |
Rating:
Sante Boscolo
|
Title |
Test
Details
Pattern Title
|
Expression |
^[\.\wæøå-]+@([a-zæøå0-9]+([\.-]{0,1}[a-zæøå0-9]+|[a-zæøå0-9]?))+\.[a-z]{2,6}$ |
Description |
Well it pretty much accepts all kinds of users, about the domain i didn't write it special for any TLD so there's no length defined, ohh and it accepts some IDN stuff |
Matches |
|
Non-Matches |
|
Author |
Rating:
Andreas Næsager
|
Title |
Test
Details
Pattern Title
|
Expression |
^([A-Za-z0-9]\s?)+([,]\s?([A-Za-z0-9]\s?)+)*$ |
Description |
This regular expression can be used to parse a comma delimited string. Leading whitespaces (at the beginning of the entire string) and ending commas are not acceptable. Any combination of letters and numbers with zero or one white space between them are acceptable. Note: To change the delimiter, simply replace the comma in the square brackets to the delimiter of choice. |
Matches |
123, 4567, 8901 | abc, defghi, jklmn | abc123 |
Non-Matches |
abc123 | abc123, | ,abc123 |
Author |
Rating:
Rehan Azam
|
Title |
Test
Details
Pattern Title
|
Expression |
^((4\d{3})|(5[1-5]\d{2})|(6011))-?\d{4}-?\d{4}-?\d{4}|3[4,7]\d{13}$ |
Description |
Matches major credit cards including:
Visa (length 16, prefix 4), Mastercard (length 16, prefix 51-55), Discover (length 16, prefix 6011), American Express (length 15, prefix 34 or 37). All 16 digit formats accept optional hyphens (-) between each group of four digits. |
Matches |
6011-1111-1111-1111 | 5423-1111-1111-1111 | 341111111111111 |
Non-Matches |
4111-111-111-111 | 3411-1111-1111-111 | Visa |
Author |
Rating:
Steven Smith
|
Title |
Test
Details
Pattern Title
|
Expression |
^(?n:(?<lastname>(St\.\ )?(?-i:[A-Z]\'?\w+?\-?)+)(?<suffix>\ (?i:([JS]R)|((X(X{1,2})?)?((I((I{1,2})|V|X)?)|(V(I{0,3})))?)))?,((?<prefix>Dr|Prof|M(r?|(is)?)s)\ )?(?<firstname>(?-i:[A-Z]\'?(\w+?|\.)\ ??){1,2})?(\ (?<mname>(?-i:[A-Z])(\'?\w+?|\.))){0,2})$ |
Description |
This pattern captures <lastname><suffix>,<prefix><firstname><mname> Names must start with a capital letter. Last names may be hyphenated. First names can have two parts ie "Mary Anne" if there are more than two names after the comma. Suffixes can number up to XXX (30th). Standard prefixes are optional (Mr Miss) |
Matches |
O'Brien, Miles | McDonald,Mary Ann Alison | Windsor-Smith,Barry |
Non-Matches |
jones, john |
Author |
Rating:
Michael Ash
|
Title |
Test
Details
Pattern Title
|
Expression |
^([51|52|53|54|55]{2})([0-9]{14})$ |
Description |
Validate against any mastercard number. All MC's start with a number between 51 and 55 and are followed by 14 other numbers. |
Matches |
5125632154125412 | 5225632154125412 | 5525632154125412 |
Non-Matches |
5625632154125412 | 4825632154125412 | 6011632154125412 |
Author |
Rating:
Jeff Johns
|
Title |
Test
Details
Pattern Title
|
Expression |
<[^>]+> |
Description |
This expression finds all opening and closing tags. Good for stripping out tags in an XML or HTML document.
I used it to clean-up HTML documents that had XML mixed in. It found all the tags, then I just deleted the ones that weren't standard. I used it in HOMESITES extended find. |
Matches |
<html> | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | < |
Non-Matches |
Any plain old text | http://www.regexlib.com/Add.aspx | xml> |
Author |
Rating:
X Man
|
Title |
Test
Details
Pattern Title
|
Expression |
^[0-9]{1,}(,[0-9]+){0,}$ |
Description |
It could be use to validate html input form (checkbox, optionbox, selectbox) when you have multiple numeric value under one field name. The validation is that the user have at lease chose one or more! |
Matches |
1111 | 47,26,2,1,1111,12 | 25,1245,2122,23232 |
Non-Matches |
111, | 1a1,111,1212,23 | 11aa,aaa,asas,asa |
Author |
Rating:
Nicholas Rathwell
|
Title |
Test
Details
Pattern Title
|
Expression |
\w{5,255} |
Description |
This is User Name & Password validation expression. It does not allow blank spaces as well as special characters like $#%@&*(){}+ |
Matches |
aa123_ter12 | aa4587 | 784566 |
Non-Matches |
123*-/ mksj |
Author |
Rating:
Chandan Agarwal
|
Title |
Test
Details
Pattern Title
|
Expression |
"((\\")|[^"(\\")])+" |
Description |
Matches quoted string, using \" as an escape to place quotes in the string |
Matches |
"test" | "escape\"quote" | "\"" |
Non-Matches |
test | "test | "test\" |
Author |
Rating:
Alessandro Vergani
|
Title |
Test
Details
Combined UK Vehicle Registration
|
Expression |
^([A-Z]{3}\s?(\d{3}|\d{2}|d{1})\s?[A-Z])|([A-Z]\s?(\d{3}|\d{2}|\d{1})\s?[A-Z]{3})|(([A-HK-PRSVWY][A-HJ-PR-Y])\s?([0][2-9]|[1-9][0-9])\s?[A-HJ-PR-Z]{3})$ |
Description |
UK vehicle registration system. This is the obvious combination of two previous expressions posted here, to merge the older system with the current system. |
Matches |
ABC 123 A | A 123 ABC | AB 12 ABC |
Non-Matches |
AB 123 C | A 123 AB | AB 12 AB |
Author |
Rating:
Not yet rated.
Amos Hurd
|
Title |
Test
Details
Pattern Title
|
Expression |
(Ù|Ú|Û|Ü|ù|ú|û|ü|µ|&#085;|&#117;|&#181;|&micro;|&#217;|&#218;|&#219;|&#220;|&Ugrave;|&Uacute;|&Ucirc;|&Uuml;|&#249;|&#250;|&#251;&#252;|&ugrave;|&uacute;|&ucirc;|&uuml;) |
Description |
Spam stopper, catches any non english characters for u used in flocks |
Matches |
Üsúally $40 | únless you act | µpper limit |
Non-Matches |
Usually $40 | unless you act | upper limit |
Author |
Rating:
Not yet rated.
Alanski Perryman
|
Title |
Test
Details
Pattern Title
|
Expression |
^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,15}$ |
Description |
Password matching expression. Password must be at least 8 characters, no more than 15 characters, and must include at least one upper case letter, one lower case letter, and one numeric digit. |
Matches |
aaaa1234AAAA | 12aaAA12 | aaaaa12345AAAAA |
Non-Matches |
aaaaa123456AAAAA | 12aaAA1 | 12aaaa12 |
Author |
Rating:
Not yet rated.
Jeff U
|
Title |
Test
Details
Pattern Title
|
Expression |
(¡|Ì|Í|Î|Ï|ì|í|î|ï|&#033;|&#161;|&iexcl;|&#185;|&sup1;|&brvbar;|&Igrave;|&Iacute;|&Icirc;|&Iuml;|&igrave;|&iacute;|&iuml;|&#204;|&#205;|&#206;|&#207;|&#236;|&#237;|&#238;|&#239;|&#073;|&#105;) |
Description |
Spam stopper, catches any non english characters for i used in flocks |
Matches |
ínvest today | Îs your | ïnto debt |
Non-Matches |
invest today | Is your | into debt |
Author |
Rating:
Not yet rated.
Alanski Perryman
|
Title |
Test
Details
Pattern Title
|
Expression |
.\{\d\} |
Description |
String formater matching. |
Matches |
The quick {0} fox {1} over the lazy dog. |
Non-Matches |
The {b} is wrong |
Author |
Rating:
Not yet rated.
Sean Ziencik
|
Title |
Test
Details
Pattern Title
|
Expression |
(Ò|Ó|Ô|Õ|Ö|Ø|ð|ò|ó|ô|õ|ö|ø|&#048;|&#079;|&#111;|&#210;|&#211;|&#212;|&#213;|&#214;|&#216;|&Ograve;|&Oacute;|&Ocirc;|&Otilde;|&Ouml;|&Oslash;|&#242;|&#243;|&#244;|&#245;|&ograve;|&oacute;|&ocirc;|&otilde;|&ouml;|&oslash;) |
Description |
Spam stopper, catches any non english characters used for o in flocks |
Matches |
Ônly $20 | Øne tô Óne | gõing today |
Non-Matches |
Only $20 | One to one | going today |
Author |
Rating:
Not yet rated.
Alanski Perryman
|
Title |
Test
Details
Older UK Vehicle Registration
|
Expression |
^([A-Z]{3}\s?(\d{3}|\d{2}|d{1})\s?[A-Z])|([A-Z]\s?(\d{3}|\d{2}|\d{1})\s?[A-Z]{3})$ |
Description |
UK vehicle registration system prior to September 2001. Allows both older suffix and the later prefix formats in simple form, with optional spaces. |
Matches |
ABC123A | A 123 ABC |
Non-Matches |
AB123A | A 123 AB |
Author |
Rating:
Not yet rated.
Amos Hurd
|
Title |
Test
Details
Current UK Vehicle Registration
|
Expression |
^([A-HK-PRSVWY][A-HJ-PR-Y])\s?([0][2-9]|[1-9][0-9])\s?[A-HJ-PR-Z]{3}$ |
Description |
UK vehicle registration system currently in use (as defined by the DVLA and put into effect from September 2001, and therefore does not allow registrations prior to this date). |
Matches |
AB51DVL | AB 51 DVL |
Non-Matches |
AZ01DLQ | AZ 01 DLQ |
Author |
Rating:
Not yet rated.
Amos Hurd
|
Title |
Test
Details
Pattern Title
|
Expression |
(È|É|Ê|Ë|è|é|ê|ë|&#069;|&#101;|&#200;|&#201;|&#202;|&#203;|&Egrave;|&Eacute;|&Ecirc;|&Euml;|&#232;|&#233;|&#234;|&#235;|&egrave;|&eacute;|&ecirc;|&euml;) |
Description |
Spam stopper, catches non english characters used in flocks. |
Matches |
Ëvery one | Ënlargëmênt | bêst ëver |
Non-Matches |
Every one | Enlargement | best ever |
Author |
Rating:
Not yet rated.
Alanski Perryman
|
Displaying page
of
pages;
Items to