RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 3418 regular expressions found.

Change page:   |    Displaying page 27 of 35 pages; Items 2601 to 2700
Title Test Details Pattern Title
Expression
^(([8]))$|^((([0-7]))$|^((([0-7])).?((25)|(50)|(5)|(75)|(0)|(00))))$
Description
Time off hours edit for quarter hour(s) less than eight.
Matches
0.25 | 7.75 | 8
Non-Matches
8.25 | 7.15 | 0.15
Author Rating: Not yet rated. Bob Kranson
Title Test Details RFC3986 Generic URI
Expression
^([a-zA-Z][a-zA-Z0-9+-.]*):((\/\/(((([a-zA-Z0-9\-._~!$&'()*+,;=':]|(%[0-9a-fA-F]{2}))*)@)?((\[((((([0-9a-fA-F]{1,4}:){6}|(::([0-9a-fA-F]{1,4}:){5})|(([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:){4})|((([0-9a-fA-F]{1,4}:)?[0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:){3})|((([0-9a-fA-F]{1,4}:){0,2}[0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:){2})|((([0-9a-fA-F]{1,4}:){0,3}[0-9a-fA-F]{1,4})?::[0-9a-fA-F]{1,4}:)|((([0-9a-fA-F]{1,4}:){0,4}[0-9a-fA-F]{1,4})?::))((([0-9a-fA-F]{1,4}):([0-9a-fA-F]{1,4}))|(([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5])))))|((([0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4})?::[0-9a-fA-F]{1,4})|((([0-9a-fA-F]{1,4}:){0,5}[0-9a-fA-F]{1,4})?::))|(v[0-9a-fA-F]+\.[a-zA-Z0-9\-._~!$&'()*+,;=':]+))\])|(([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5]))\.([0-9]|(1[0-9]{2})|(2[0-4][0-9])|(25[0-5])))|(([a-zA-Z0-9\-._~!$&'()*+,;=']|(%[0-9a-fA-F]{2}))*))(:[0-9]*)?)((\/([a-zA-Z0-9\-._~!$&'()*+,;=':@]|(%[0-9a-fA-F]{2}))*)*))|(\/?(([a-zA-Z0-9\-._~!$&'()*+,;=':@]|(%[0-9a-fA-F]{2}))+(\/([a-zA-Z0-9\-._~!$&'()*+,;=':@]|(%[0-9a-fA-F]{2}))*)*)?))(\?(([a-zA-Z0-9\-._~!$&'()*+,;=':@\/?]|(%[0-9a-fA-F]{2}))*))?((#(([a-zA-Z0-9\-._~!$&'()*+,;=':@\/?]|(%[0-9a-fA-F]{2}))*)))?$
Description
Manually derived this from the grammar in Appendix A of RFC3986 (Uniform Resource Identifier (URI): Generic Syntax). Matches anything that fits the generic syntax of a URI. Supports IPv6 hosts.
Matches
http://user:pwd@domain.com:123/dir/subdir/?qp1=v%d3&qp2=98#frag | http://192.168.0.0:123/dir/subdir/?qp1=v%d3&qp2=98#frag | svn+ssh://[D456::1234:4321]:123/dir/subdir/?qp1=v%d3&qp2=98#frag
Non-Matches
http://user:pwddomain.com:123/dir/subdir/?qp1=v%d3&qp2=98#frag | http://192.168.0.0:123/dir/subdir/?qp1=v%d&qp2=98#frag | svn+ssh://[D456::12344321]:123/dir/subdir/?qp1=v%d3&qp2=98#frag
Author Rating: Not yet rated. James Lentini
Title Test Details Name
Expression
[-'a-zA-Z]
Description
Best For First Name or Middle Name or Last Name This Expression Allows only alphabets with apostrophe (').
Matches
Jhon's
Non-Matches
0-9 and Special Characters
Author Rating: Not yet rated. Dilip Nikam
Title Test Details Russian phone numbers
Expression
((8|\+7)-?)?\(?\d{3,5}\)?-?\d{1}-?\d{1}-?\d{1}-?\d{1}-?\d{1}((-?\d{1})?-?\d{1})?
Description
pattern for processing phone (phones) numbers (Russia)
Matches
+7(916)9985670, 8-912-268-5440, 8905148-3339, 8(913)448-51-90, 903-345-34-34, 903-34-334-34, 903-34-33434, 8(34543)54-4-56
Non-Matches
x
Author Rating: Not yet rated. bask
Title Test Details Zero excluding money amount
Expression
((0)+(\.[1-9](\d)?))|((0)+(\.(\d)[1-9]+))|(([1-9]+(0)?)+(\.\d+)?)|(([1-9]+(0)?)+(\.\d+)?)
Description
Zero excluding money amount
Matches
0.01, 0.10, 123.00, 46
Non-Matches
0, 0.0, 0.00, -1, -10.23. 11.234
Author Rating: Not yet rated. bask
Title Test Details Sentence parsing
Expression
(?<word>([\w]*))(?<prep>([\,\.\!\?\-\:\;\""\(\)])?)
Description
Parse the sentence to separated words and signs of preposition.
Matches
Куропатка упала, тяжело дыша.
Non-Matches
None
Author Rating: Not yet rated. bask
Title Test Details Address analyzer
Expression
(?<street>((\d+\-)?[?-?\.]* )*)(?<IsStreet>((?????)|(????????)|(??-?)|(?-?)|(??-?)|(???????)|(???[ \.]?)|(???(?:\.)?)|(?(?:\.)?)|(??\.)|(???(?:\.)?)|(??(?:\.)?))) *(?<street2>[?-?]{2,} )?(?:?\.?)?(?<home>\d+[?-?]?)([ -/?]+(???)?(?<building>\d+)[ -/](?<flat>\d+))*([ -/](??\.? ?)?(?<flat>\d+))?
Description
Analises the complex address string
Matches
ГОЛОВАНОВА МАРШАЛА УЛИЦА Д.14 42 СТАЛЕВАРОВ Ул. 18 2 81
Non-Matches
КРИВОРОЖСКАЯ 17-71
Author Rating: Not yet rated. bask
Title Test Details Search sentences with words ending by -тся/-ться
Expression
([^\.]*?(\w+(???|????))[^\.]*?\.+)\s+
Description
Search sentences with words ending by -???/-????
Matches
Работа с регулярными выражениями является частью повседневной работы системного администратора. Смеркается. Кто-то едет в отпуск, кто-то выбирается на дачи за город. Эта машина мне нравиться.Эта машина мне нравится.
Non-Matches
Кандидат BSDA должен быть способен искать текстовые шаблоны при анализе вывода программ или поиске в файлах. Кандидат должен знать, где указывается диапазон символов в скобках [], определять литерал (?!), использовать квантификаторы, отличать метасимволы и создавать инвертированные фильтры.
Author Rating: Not yet rated. bask
Title Test Details Range validator
Expression
^([A-Z0-9?.+-])+([,]([A-Z0-9?.+-])+)*$
Description
This Expression validates alfanumeric values. This was created to validate a range of values that could start with ?. It is case sensitive, this means the characters need to be uppercase.
Matches
?-MM1, 45.NN2-45.NN50,C015+,?,NA
Non-Matches
?-mm1,N/A,"C001+,"
Author Rating: Not yet rated. Carlos Perez
Title Test Details Serial Numbers
Expression
^([A-Z0-9?.+-])+([,]([A-Z0-9?.+-])+)*$
Description
This expresion validates ranges of serial numbers
Matches
AC20, NA,ALL
Non-Matches
All
Author Rating: Not yet rated. Carlos Perez
Title Test Details German Phone number
Expression
^((00|\+)49)?(0?[2-9][0-9]{1,})$
Description
Validates an German area dial code and telephone number.
Matches
0049891567 | +49891234567 | 0891234567
Non-Matches
004312345678 | 4912345678 | (+49)1234567
Author Rating: The rating for this expression. Anian Baumann
Title Test Details German Cellphone (Mobile) number
Expression
^((00|\+)49)?(0?1[5-7][0-9]{1,})$
Description
Validates all German area dial code and telephone numbers.
Matches
004915112367 | +491601234567 | 01721234567 etc...
Non-Matches
(+49)1511234567 | (0)1741234567 | 160134567
Author Rating: Not yet rated. Anian Baumann
Title Test Details German Bank Code (Bankleitzahl)
Expression
[1-8][0-9]{2}[0-9]{5}
Description
Validates the German Bank Code named "Bankleitzahl"
Matches
50060400
Non-Matches
12345678
Author Rating: Not yet rated. Anian Baumann
Title Test Details Pattern Title
Expression
^[A-Za-zÀ-ÖØ-öø-ÿ '\-\.]{1,22}$
Description
Should match just about any real name, either first name or last name -- even Jill St. John. Can't think of a name that has more than 22 characters. My home page: &lt;A HREF=&quot;http://www.US-Webmasters.com/best-start-page/&quot;&gt;http://www.US-Webmasters.com/best-start-page/&lt;/A&gt;
Matches
Jill St. John | Jørnç | Mc O'Donald-Öztürk
Non-Matches
abc123 | Nobody! | @#$%^&
Author Rating: Not yet rated. W. D.
Title Test Details Pattern Title
Expression
^[abceghjklmnprstvxyABCEGHJKLMNPRSTVXY][0-9][abceghjklmnprstvwxyzABCEGHJKLMNPRSTVWXYZ] {0,1}[0-9][abceghjklmnprstvwxyzABCEGHJKLMNPRSTVWXYZ][0-9]$
Description
Canadian Postal Code / Codes / Canada / Zip Google for DFIOQU and you'll see where I got the info for this. Can anyone simplify this?
Matches
G3M 5T9 | C3M5T9
Non-Matches
Z3M 5T9 | W3M 5T9 | 5T9 C3M
Author Rating: Not yet rated. W. D.
Title Test Details Pattern Title
Expression
^[01]?[- .]?\(?[2-9]\d{2}\)?[- .]?\d{3}[- .]?\d{4}$
Description
U. S. or Canadian telephone number regular expression. &lt;BR&gt; &lt;BR&gt; // # Checks phone numbers for validity &lt;BR&gt; // [01]? # optional '0', or '1' &lt;BR&gt; // [- .]? # optional separator is either a dash, a space, or a period. &lt;BR&gt; // \(? # optional parentheses &lt;BR&gt; // [2-9] # first # of the area code must not be a '0' or '1' &lt;BR&gt; // \d{2} # next 2 digits of area code can be 0-9 &lt;BR&gt; // \)? # optional parentheses &lt;BR&gt; // [- .]? # optional separator is either a dash, a space, or a period. &lt;BR&gt; // \d{3} # 3-digit prefix &lt;BR&gt; // [- .]? # optional separator is either a dash, a space, or a period. &lt;BR&gt; // \d{4} # 4-digit station number &lt;BR&gt;
Matches
18008793262 | 800-879-3262 | 0-800.879.3262
Non-Matches
879 3262 | 077 879 3262 | 879-3262
Author Rating: Not yet rated. W. D.
Title Test Details Password not start or end with number
Expression
^((?=[^\d])(?=^*[^0-9]$)(?!.*')(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s))?(?=.*[^\d]$).{8,15}$
Description
This pattern is a extension of Jeremy Samuel's password pattens, I included a validation for the string not end with number
Matches
arielMM{3s | Arielmm&2s
Non-Matches
1arielMM{3s | Arielmm&2
Author Rating: The rating for this expression. Ariel Martínez
Title Test Details Windows filename
Expression
(?i)^(((\\\\(\?\\(UNC\\)?)?)([A-Z]:\\|([^\\\/\:\*\?\"\<\>\|\.\s][^\\\/\:\*\?\"\<\>\|]+[^\\\/\:\*\?\"\<\>\|\.\s]\\){2}))|[A-Z]:\\)([^\\\/\:\*\?\"\<\>\|\s][^\\\/\:\*\?\"\<\>\|]+[^\\\/\:\*\?\"\<\>\|\s]\\)*([^\\\/\:\*\?\"\<\>\|\.\s][^\\\/\:\*\?\"\<\>\|\.]+[^\\\/\:\*\?\"\<\>\|\.\s])(\.[^\\\/\:\*\?\"\<\>\|\.\s]+)*?$
Description
Matches valid Windows filenames using local, network and UNC formats.
Matches
C:\Program Files\RegEx\RegEx.exe.manifest
Non-Matches
C:\Filename.*
Author Rating: Not yet rated. Frank Pottle
Title Test Details Version information
Expression
^(0\.|([1-9]([0-9]+)?)\.){3}(0|([1-9]([0-9]+)?)){1}$
Description
A simple regex to check a version information string of the style 1.0.0.0
Matches
1.2.3.4
Non-Matches
1.2.3 | 01.02.03.04 | 1.2.3.4Beta
Author Rating: Not yet rated. Frank Pottle
Title Test Details South African phone numbers - All formats
Expression
^((0|(\(0\)))?|(00|(\(00\)))?(\s?|-?)(27|\(27\))|((\+27))|(\(\+27\))|\(00(\s?|-?)27\))( |-)?(\(?0?\)?)( |-)?\(?(1[0-9]|2[1-4,7-9]|3[1-6,9]|4[0-9]|5[1,3,6-9]|7[1-4,6,8,9]|8[0-9])\)?(\s?|-?)((\d{3}(\s?|-?)\d{4}$)|((\d{4})(\s?|-?)(\d{3})$)|([0-2](\s?|-?)(\d{3}(\s?|-?)\d{3}$)))
Description
Matches all valid mobile numbers, landline numbers, share call etc in all common phone number notations
Matches
+27-11-399-7206
Non-Matches
075-356-6364
Author Rating: Not yet rated. Bright
Title Test Details Date in Arabic Numeral
Expression
^((((\u0660?[\u0661-\u0669]|[\u0661\u0662][\u0660-\u0669]|\u0663[\u0660\u0661])[\.\-\/](\u0660?[\u0661\u0663\u0665\u0667\u0668]|\u0661[\u0660\u0662])[\.\-\/]((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|((\u0660?[\u0661-\u0669]|[\u0661\u0662][\u0660-\u0669]|\u0663\u0660)[\.\-\/](\u0660?[\u0661\u0663\u0664\u0665\u0666\u0667\u0668\u0669]|\u0661[\u0660\u0661\u0662])[\.\-\/]((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|((\u0660?[\u0661-\u0669]|\u0661[\u0660-\u0669]|\u0662[\u0660-\u0668])[\.\-\/]\u0660?\u0662[\.\-\/]((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|(\u0662\u0669[\.\-\/]\u0660?\u0662[\.\-\/]((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?(\u0660[\u0664\u0668]|[\u0662\u0664\u0666\u0668][\u0660\u0664\u0668]|[\u0661\u0663\u0665\u0667\u0669][\u0662\u0666])|((\u0661\u0666|[\u0662\u0664\u0666\u0668][\u0660\u0664\u0668]|[\u0663\u0665\u0667\u0669][\u0662\u0666])\u0660\u0660)|\u0660\u0660)))|(((\u0660[\u0661-\u0669]|[\u0661\u0662][\u0660-\u0669]|\u0663[\u0660\u0661])(\u0660[\u0661\u0663\u0665\u0667\u0668]|\u0661[\u0660\u0662])((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|((\u0660[\u0661-\u0669]|[\u0661\u0662][\u0660-\u0669]|\u0663\u0660)(\u0660[\u0661\u0663\u0664\u0665\u0666\u0667\u0668\u0669]|\u0661[\u0660\u0661\u0662])((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|((\u0660[\u0661-\u0669]|\u0661[\u0660-\u0669]|\u0662[\u0660-\u0668])\u0660\u0662((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|(\u0662\u0669\u0660\u0662((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?(\u0660[\u0664\u0668]|[\u0662\u0664\u0666\u0668][\u0660\u0664\u0668]|[\u0661\u0663\u0665\u0667\u0669][\u0662\u0666])|((\u0661\u0666|[\u0662\u0664\u0666\u0668][\u0660\u0664\u0668]|[\u0663\u0665\u0667\u0669][\u0662\u0666])\u0660\u0660)|\u0660\u0660))))$
Description
Validate date with arabic numeral of the form dd/mm/yy or dd/mm/yy or dd-mm-yy or dd-mm-yyyy or dd.mm.yy or dd.mm.yyyy
Matches
١١/٠١/٢٠ ٢٩-٢-٢٠ ٢٩/٢/٢٠ ١١/١١/٢٠١١
Non-Matches
١٠/٣٠/١٠
Author Rating: The rating for this expression. Fahad CV
Title Test Details Date with arabic or english numeral
Expression
^((((\u0660?[\u0661-\u0669]|[\u0661\u0662][\u0660-\u0669]|\u0663[\u0660\u0661])[\.\-\/](\u0660?[\u0661\u0663\u0665\u0667\u0668]|\u0661[\u0660\u0662])[\.\-\/]((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|((\u0660?[\u0661-\u0669]|[\u0661\u0662][\u0660-\u0669]|\u0663\u0660)[\.\-\/](\u0660?[\u0661\u0663\u0664\u0665\u0666\u0667\u0668\u0669]|\u0661[\u0660\u0661\u0662])[\.\-\/]((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|((\u0660?[\u0661-\u0669]|\u0661[\u0660-\u0669]|\u0662[\u0660-\u0668])[\.\-\/]\u0660?\u0662[\.\-\/]((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|(\u0662\u0669[\.\-\/]\u0660?\u0662[\.\-\/]((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?(\u0660[\u0664\u0668]|[\u0662\u0664\u0666\u0668][\u0660\u0664\u0668]|[\u0661\u0663\u0665\u0667\u0669][\u0662\u0666])|((\u0661\u0666|[\u0662\u0664\u0666\u0668][\u0660\u0664\u0668]|[\u0663\u0665\u0667\u0669][\u0662\u0666])\u0660\u0660)|\u0660\u0660)))|(((\u0660[\u0661-\u0669]|[\u0661\u0662][\u0660-\u0669]|\u0663[\u0660\u0661])(\u0660[\u0661\u0663\u0665\u0667\u0668]|\u0661[\u0660\u0662])((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|((\u0660[\u0661-\u0669]|[\u0661\u0662][\u0660-\u0669]|\u0663\u0660)(\u0660[\u0661\u0663\u0664\u0665\u0666\u0667\u0668\u0669]|\u0661[\u0660\u0661\u0662])((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|((\u0660[\u0661-\u0669]|\u0661[\u0660-\u0669]|\u0662[\u0660-\u0668])\u0660\u0662((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?[\u0660-\u0669]{2}))|(\u0662\u0669\u0660\u0662((\u0661[\u0666-\u0669]|[\u0662-\u0669][\u0660-\u0669])?(\u0660[\u0664\u0668]|[\u0662\u0664\u0666\u0668][\u0660\u0664\u0668]|[\u0661\u0663\u0665\u0667\u0669][\u0662\u0666])|((\u0661\u0666|[\u0662\u0664\u0666\u0668][\u0660\u0664\u0668]|[\u0663\u0665\u0667\u0669][\u0662\u0666])\u0660\u0660)|\u0660\u0660)))|(((0?[1-9]|[12]\d|3[01])[\.\-\/](0?[13578]|1[02])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|[12]\d|30)[\.\-\/](0?[13456789]|1[012])[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|((0?[1-9]|1\d|2[0-8])[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?\d{2}))|(29[\.\-\/]0?2[\.\-\/]((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00)))|(((0[1-9]|[12]\d|3[01])(0[13578]|1[02])((1[6-9]|[2-9]\d)?\d{2}))|((0[1-9]|[12]\d|30)(0[13456789]|1[012])((1[6-9]|[2-9]\d)?\d{2}))|((0[1-9]|1\d|2[0-8])02((1[6-9]|[2-9]\d)?\d{2}))|(2902((1[6-9]|[2-9]\d)?(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)|00))))$
Description
Validate date of the form dd/mm/yy or dd/mm/yy or dd-mm-yy or dd-mm-yyyy or dd.mm.yy or dd.mm.yyyy in Arabic or English numerals
Matches
1/12/2001 30/03/90 02/04/09 ١١/٠١-٢٠ ١١/٠١-٢٠ ٢٩/٢/٢٠١١/١١/٢٠١١
Non-Matches
11/13/12 ١٠-٣٠-١٠
Author Rating: The rating for this expression. Fahad CV
Title Test Details Decimal number with 2 digits after comma
Expression
^[+-]?\d+(\,\d{2})? *?$
Description
This regex accepts decimal number with exactly 2 numbers after comma and without point.
Matches
0,00 0,99 -99,99 999999 -9 0 999999999,99
Non-Matches
9,9 0,0
Author Rating: Not yet rated. jose
Title Test Details Pattern Title
Expression
^[a-zA-Z]+((\s|\-)[a-zA-Z]+)?$
Description
This regex validates a persons first name. Acceptable names include compound names with a hyphen or a space in them.
Matches
Bobbie Sue | Ana-Claire | BobbyJoe
Non-Matches
Billy - Joe | Billy Jr. | Thos.
Author Rating: Not yet rated. s l
Title Test Details Pattern Title
Expression
^[a-zA-Z]+((((\-)|(\s))[a-zA-Z]+)?(,(\s)?(((j|J)|(s|S))(r|R)(\.)?|II|III|IV))?)?$
Description
This regex validates a persons last name. Acceptable names can include compound names seperated by a hyphen or a space.
Matches
Jones, Jr | Casey-Jones | Casey-Jones, IV
Non-Matches
Jones, IV. | Jones , Jr | Casey-Jones-Hall
Author Rating: Not yet rated. s l
Title Test Details Password Matching Expression
Expression
^(?=.*[a-zA-Z].*[a-zA-Z])(?=.*\d.*\d)[a-zA-Z0-9]{6,20}$
Description
Password matching expression. Password must consists of at least 6 characters and not more than 20 characters. Password must contain only letters and digits. Password must contain at least 2 digits and at least 2 letters.
Matches
a1b2c3
Non-Matches
aaaaa1
Author Rating: Not yet rated. Didier Marin
Title Test Details Pattern Tittle
Expression
^[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3})$
Description
validates after dot operator. matches atleast 2 char and max 3 char.www dot is rejected.
Matches
yahoo.com|ABC.COM|abc.au
Non-Matches
yahoo.c|ABC.argv
Author Rating: Not yet rated. Amit Gupta@UCV
Title Test Details Pattern Tittle
Expression
^([a-zA-Z0-9-\,\s]{2,64})$
Description
Validates for string to be atleast 2 char and max 64 char
Matches
10 street, new york|10 street , 10\68, new york
Non-Matches
10 street & 10/68 new york
Author Rating: Not yet rated. Amit Gupta@UCV
Title Test Details US Currency
Expression
\$(\d)*\d
Description
This Expression is used to Validate the US curreny.
Matches
$300 | $12900
Non-Matches
$300.50 | $12900.00 | 300 |12900
Author Rating: Not yet rated. Faiz Shaikh
Title Test Details Pattern Title
Expression
# The real regex is: # (?&lt;=\n......\s*\b)COPY\b\s*\b(\w*(-)?\w*)*\b \bCOPY\b\s*\b(\w*(-)?\w*)*\b
Description
This regex is handy for matching *uncommented* COPY statements in COBOL programs, plus the name of the copy book member to be copied. If you want to list out the COPY'ed source files contained in a COBOL program, this will do it. Consider the text: Y2K COPY CD10D-ERRORS. UARK01*COPY DPSSTATUSCOB IN DPSLIB. UARK01 COPY INFO-BUFFER . The COPY statements on the first and third line will be matched, but the second line will not match because of the COBOL comment character in column 7, which comments out the whole line, including the COPY statement, thus it is excluded from the compile.
Matches
COPY DFHAID
Non-Matches
COPEY DFHAID | COPPY 100-MAIN-RECORD.
Author Rating: Not yet rated. Jim Daniels
Title Test Details Multiple Email Addresses
Expression
^([_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,})))(;[ ]?[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,})))*$
Description
Matches a semi-colon-delimited string of email addresses. Delimiter can include a space after the semi-colon. Based on/thanks to David Huyck's pattern, with the domain extension opened up and specific extensions removed.
Matches
jdude@yahoo.com | jdude@yahoo.com; janedoe@hotmail.com | jdude@yahoo.com; janedoe@hotmail.com; billybob@127.0.0.1
Non-Matches
jdudeyahoo.com | jdude@yahoo.com or janedoe@hotmail.com | jdude@yahoo.com, janedoe@hotmail.com, billybob@127.0.0.1
Author Rating: Not yet rated. John C. Pratt
Title Test Details Pattern Title
Expression
^((([A-PR-UWYZ](\d([A-HJKSTUW]|\d)?|[A-HK-Y]\d([ABEHMNPRVWXY]|\d)?))\s*(\d[ABD-HJLNP-UW-Z]{2})?)|GIR\s*0AA)$
Description
matches uk postcodes according to specifications found at: http://www.govtalk.gov.uk/gdsc/html/noframes/PostCode-2-1-Release.htm
Matches
M1 1AA | EC1A 1BB | DN55 1PT
Non-Matches
SW17 8CB
Author Rating: Not yet rated. Chris Linseman
Title Test Details Binary Validator
Expression
^(0|1)+$
Description
A stupid REGEXP that validate a binary number on more rows.
Matches
01001010101001
Non-Matches
010102002010010
Author Rating: The rating for this expression. remaxer
Title Test Details Date Validator
Expression
^((0?[1-9])|(([1|2]\d)|(3[0|1])))(/|-)((0?[1-9])|(1[0|1|2]))(/|-)(((19|20)\d\d)|(\d\d))
Description
My first date validator.
Matches
09-8-2014 3-9-2012
Non-Matches
31-28-1903
Author Rating: Not yet rated. remaxer
Title Test Details Swiss standard phone numbers
Expression
^(0{1})([1-9]{2})(\s|-|.{0,1})(\d{3})(\s|-|.{0,1})(\d{2})(\s|-|.{0,1})(\d{2})$
Description
useful regex when we only need phone number from and for people inside the country
Matches
025 546 58 78 | 025-546-58-78 | 025.546.58.78 | 0255465878
Non-Matches
0041 025 546 58 78 | +41 025 546 58 78 | +41 (0) 25 546 58 78
Author Rating: Not yet rated. Tano
Title Test Details First Middle Last Names and Suffix
Expression
(^\s*(?<firstname>(?!st\.?\s+)\w+\S*)\s+(?<middlename>(?!st\.?\s+)\w+\S*)\s+(?<lastname>(st\.?\s+)?\w+[^, ]*)(?:(,| ))*\s+(?<suffix>\w+\S*)\s*$)|(^\s*(?<firstname>(?!st\.?\s+)\w+\S*)\s+(?<lastname>(st\.?\s+)?\w+\S*)\s+(?<suffix>(jr)|(sr)|(ii)|(iii)||(iv)|(v)|(vi)|(vii)|(viii))\s*$)|(^\s*(?<firstname>(?!st\.?\s+)\w+\S*)\s+(?<middlename>(?!st\.?\s+)\w+\S*)\s+(?<lastname>(st\.?\s+)?\w+\S*)\s*$)|(^\s*(?<firstname>(?!st\.?\s+)\w+\S*)\s+(?<lastname>(st\.?\s+)?\w+\S*)\s*$)|(^\s*(?<lastname>(st\.?\s+)?\w+\S*)\s*$)
Description
Matches parts of a name. Last name only; first and last names; first, middle, and last names; first, middle, and last names and suffix; first and last names and suffix. This is very permissive so it's good for isolating name parts but doesn't validate whether a string is a reasonable name.
Matches
Loretta M.J.H Mac-Hogan-O'Brien, Jr.
Non-Matches
John Jacob JingleHeimer Smith Jr.
Author Rating: Not yet rated. Michael Yourshaw
Title Test Details Pattern Title
Expression
>(?:(?<t>[^<]*))
Description
Detects HTML tags open and/or closed with and without whitespace or characters in between. Good for stripping all tags from a string.
Matches
<b> | </b> | <p><b>some text</b></p>
Non-Matches
<
Author Rating: Not yet rated. Jonathan Crossland
Title Test Details Block pdf Spams
Expression
how to block pdf spam
Description
The Spam Blocker developed by ClearMyMail is capable to reveal and block the PDF spam before it reaches the mailbox, saving disk space, time and bandwidth. One of the biggest techniques spammers are using to try and get through spam blockers is the simple PDF method. This attached file will then incubate their sales message (E.g. "These shares are going through the roof!") making it impossible for traditional spam blockers to know what the message is about -- most spam blockers are unable to read the contents of a PDF file.
Matches
pdf spam
Non-Matches
spammer
Author Rating: Not yet rated. usaf
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 mm/dd/yyyy 00:00
Expression
/^(\d{1,2})(\/)(\d{1,2})(\/)(\d{4})(T|\s{1,2})(([0-1][0-9])|(2[0-3])):([0-5][0-9])+$/;
Description
date and time. mm/dd/yyyy 00:00 format
Matches
02/03/2008 19:08 | 02/26/2009 19:17
Non-Matches
02/26/2009
Author Rating: Not yet rated. viswanatham
Title Test Details Accurate IP address verification
Expression
((0|1[0-9]{0,2}|2[0-9]?|2[0-4][0-9]|25[0-5]|[3-9][0-9]?)\.){3}(0|1[0-9]{0,2}|2[0-9]?|2[0-4][0-9]|25[0-5]|[3-9][0-9]?)
Description
Accurate IP address verification... Each numeric part of an IP address must be between 0 and 255. All patterns I have seen on the net cover this range but they allow leading zeros. The valid cases are: * 0 * 1, 10-19 and 100-199 aka 1[0-9]{0,2} * 2 and 20-29 aka 2[0-9]? * 200-249 aka 2[0-4][0-9] * 250-255 aka 25[0-5] * 3-9 and 30-99 aka [3-9][0-9]?
Matches
10.0.0.0 | 195.167.1.119 | 255.255.255.255
Non-Matches
010.0.0.0 | 195.167.01.119 | 256.20.55.23
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details Australian postal code verification
Expression
(0[289][0-9]{2})|([1345689][0-9]{3})|(2[0-8][0-9]{2})|(290[0-9])|(291[0-4])|(7[0-4][0-9]{2})|(7[8-9][0-9]{2})
Description
Accurate Australian postal code verification. Australia has 4-digit numeric postal codes with the following state based specific ranges. ACT: 0200-0299 and 2600-2639. NSW: 1000-1999, 2000-2599 and 2640-2914. NT: 0900-0999 and 0800-0899. QLD: 9000-9999 and 4000-4999. SA: 5000-5999. TAS: 7800-7999 and 7000-7499. VIC: 8000-8999 and 3000-3999. WA: 6800-6999 and 6000-6799.
Matches
0200 | 7312 | 2415
Non-Matches
0300 | 7612 | 2915
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details Canadian postal code format verification
Expression
([ABCEGHJKLMNPRSTVXY][0-9][ABCEGHJKLMNPRSTVWXYZ])\ ?([0-9][ABCEGHJKLMNPRSTVWXYZ][0-9])
Description
Accurate Canadian postal code format verification. The format of a Canadian postal code is LDL DLD where L are alpha characters and D are numeric digits. But there are some exceptions. The letters D, F, I, O, Q and U never appear in a postal code because of their visual similarity to 0, E, 1, 0, 0, and V respectively. In addition to avoiding the six &quot;forbidden&quot; letters W and Z also do not appear as the first letter of a postal code (at least not at present).
Matches
M1R 4B0 | L0R 1B1 | L0R1B9
Non-Matches
W1R 4B0 | L0R 1D1 | LOR1B9
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details German postal code verification (UPDATED)
Expression
((0[13-7]|1[1235789]|[257][0-9]|3[0-35-9]|4[0124-9]|6[013-79]|8[0124-9]|9[0-5789])[0-9]{3}|10([2-9][0-9]{2}|1([2-9][0-9]|11[5-9]))|14([01][0-9]{2}|715))
Description
Accurate German postal code verification. Germany has 5-digit numeric postal codes. The expression evaluates a postal code within state based specific ranges.
Matches
01125
Non-Matches
34125
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details UK postal code format verification
Expression
(([A-Z]{1,2}[0-9][0-9A-Z]?)\ ([0-9][A-Z]{2}))|(GIR\ 0AA)
Description
Accurate UK postal code format verification. UK postal codes have two parts. The right part is formatted as DLL (L:letter D:digit) and the left part has six alternative formats: LD, LDL, LDD, LLD, LLDL and LLDD. There is only one exception to these formats: GIR 0AA.
Matches
M2 5BQ | EC1A 1HQ | GIR 0AA
Non-Matches
M2 BQ5 | E31A 1HQ | GIR0AA
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (DE, EE, EL, PT)
Expression
((EE|EL|DE|PT)-?)?[0-9]{9}
Description
VAT Numbers format verification (Estonia, Germany, Greece, Portugal) with support for optional member state definition.
Matches
DE123456789 | 224466880
Non-Matches
DE12345678 | 22446688B
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (FI, HU, LU, MT, SI)
Expression
((FI|HU|LU|MT|SI)-?)?[0-9]{8}
Description
VAT Numbers format verification (Finland, Hungary, Luxemburg, Malta, Slovenia) with support for optional member state definition.
Matches
HU12345678 | 22446688
Non-Matches
HU1234567 | 224466BB
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (PL, SK)
Expression
((PL|SK)-?)?[0-9]{10}
Description
VAT Numbers format verification (Poland, Slovakia) with support for optional member state definition.
Matches
PL1234567890 | 1234567890
Non-Matches
PL123456789 | 123456789O
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (IT, LV)
Expression
((IT|LV)-?)?[0-9]{11}
Description
VAT Numbers format verification (Italy, Latvia) with support for optional member state definition.
Matches
IT12345678901 | 12345678901
Non-Matches
IT1234567890 | 1234567890I
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (SE)
Expression
(SE-?)?[0-9]{12}
Description
VAT Numbers format verification (Sweden) with support for optional member state definition.
Matches
SE123456789012 | 123456789012
Non-Matches
SE12345678901 | 123456789O12
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (BE)
Expression
(BE-?)?0?[0-9]{9}
Description
VAT Numbers format verification (Belgium) with support for optional member state definition.
Matches
BE123456789 | 0123456789
Non-Matches
BE12345678 | O123456789
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (CY)
Expression
(CY-?)?[0-9]{8}[A-Z]
Description
VAT Numbers format verification (Cyprus) with support for optional member state definition.
Matches
CY12345678A | 12345678A
Non-Matches
CY1234567A | 123456789
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (CZ)
Expression
(CZ-?)?[0-9]{8,10}
Description
VAT Numbers format verification (Czech Republic) with support for optional member state definition.
Matches
CZ12345678 | 1234567890
Non-Matches
CZ1234567 | 12345678901
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (DK)
Expression
(DK-?)?([0-9]{2}\ ?){3}[0-9]{2}
Description
VAT Numbers format verification (Denmark) with support for optional member state definition.
Matches
DK11 22 33 44
Non-Matches
DK11223344
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (ES)
Expression
(ES-?)?([0-9A-Z][0-9]{7}[A-Z])|([A-Z][0-9]{7}[0-9A-Z])
Description
VAT Numbers format verification (Spain) with support for optional member state definition.
Matches
ES01234567A | A12345678
Non-Matches
ES012345678 | AB2345678
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (FR)
Expression
(FR-?)?[0-9A-Z]{2}\ ?[0-9]{9}
Description
VAT Numbers format verification (France) with support for optional member state definition.
Matches
FRAB 123456789 | L7 123456789
Non-Matches
FRAB123456789 | L7 L23456789
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (GB)
Expression
(GB-?)?([1-9][0-9]{2}\ ?[0-9]{4}\ ?[0-9]{2})|([1-9][0-9]{2}\ ?[0-9]{4}\ ?[0-9]{2}\ ?[0-9]{3})|((GD|HA)[0-9]{3})
Description
VAT Numbers format verification (United Kingdom) with support for optional member state definition.
Matches
GB123 1234 12 | GBGD123 | 123 1234 12 123
Non-Matches
GB123123412 | GBGD1234 | 023 1234 12 123
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (IE)
Expression
(IE-?)?[0-9][0-9A-Z\+\*][0-9]{5}[A-Z]
Description
VAT Numbers format verification (Ireland) with support for optional member state definition.
Matches
IE4*12345Z | 0012345K
Non-Matches
IE4-12345Z | 00123456
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (LT)
Expression
(LT-?)?([0-9]{9}|[0-9]{12})
Description
VAT Numbers format verification (Lithuania) with support for optional member state definition.
Matches
LT123456789 | 123456789012
Non-Matches
LX123456789 | 123466789O12
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details VAT Numbers format verification (NL)
Expression
(NL-?)?[0-9]{9}B[0-9]{2}
Description
VAT Numbers format verification (The Netherlands) with support for optional member state definition.
Matches
NL123456789B12
Non-Matches
NL123456789012
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details Valid Base64 string
Expression
(([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?){1}
Description
The expression evaluates a Base64 string as a sequence of 4-byte blocks with a possible tail of 2 or 3-byte block with valid padding.
Matches
AAAAAA==
Non-Matches
AAAAAA
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details HTML encoded characters as dec or hex values
Expression
&amp;#([0-9]{1,5}|x[0-9a-fA-F]{1,4});
Description
Find all html encoded characters as dec &amp;#[0-9]{1,5}; or hex &amp;#x[0-9a-fA-F]{1,4}; values. Remember to remove "amp;" which is used for making this post possible.
Matches
&amp;#160; | &amp;#xa0;
Non-Matches
&amp;nbsp;
Author Rating: Not yet rated. Vassilis Petroulias
Title Test Details US and Canada Phone numbers (all variations)
Expression
((\+?1)(\ \.-)?)?\([2-9][0-9]{2}|\([2-9][0-9]{2}\))(\ \.-)?[0-9]{3}(\ \.-)?[0-9]{4}
Description
US and Canada phones in any usual variation (area code in parenthesis, spaces or dots) including the international notation +1
Matches
+1 212 555 6666 | (212) 555 6666 | 212-555-666 | 212 5556666
Non-Matches
212 555 666
Author Rating: Not yet rated. Vassilis Petroulias
Title Test Details Month names (english)
Expression
(Jan(uary)?|Feb(ruary)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|Sep(tember)?|Oct(ober)?|(Nov|Dec)(ember)?)
Description
The expression matches any month name (english) in short or full style. Use it with case insensitive mode in your date matching expressions.
Matches
Jan | April
Non-Matches
Febr
Author Rating: The rating for this expression. Vassilis Petroulias
Title Test Details Weekday names (english)
Expression
(Mo(n(day)?)?|Tu(e(sday)?)?|We(d(nesday)?)?|Th(u(rsday)?)?|Fr(i(day)?)?|Sa(t(urday)?)?|Su(n(day)?)?)
Description
The expression matches any weekday name (english) in short (2 or 3 characters) or full style. Use it with case insensitive mode in your date matching expressions.
Matches
Mo | Sun
Non-Matches
Any
Author Rating: Not yet rated. Vassilis Petroulias
Title Test Details US (5 or 9 digits) Zip Codes with grouping
Expression
(?&lt;group5&gt;[0-9]{5})-?(?&lt;group4&gt;[0-9]{4})?
Description
Match 5-digit or 9-digit US zip codes with grouped results. Remember to replace &lt; with open tag char and &gt; with close tag char
Matches
12345 | 12345-6789 | 123456789
Non-Matches
12345 6789
Author Rating: Not yet rated. Vassilis Petroulias
Title Test Details US Phone
Expression
^(1|1(\s|\s?-\s?|\s?\.\s?|\s?/\s?))?((\(?[2-9]{1}[\d]{2}\)?(\s|\s?-\s?|\s?\.\s?|\s?/\s?)?))?(\d{3})(\s|\s?-\s?|\s?\.\s?|\s?/\s?)?(\d{4})$
Description
USA Phone number with dash, periods, slashes, spaces, () and only last 7 digit is required but everything else is checked Here it is broken down feel free to add too it or use it Begin String: ^ Country Code 1: (1|1(\s|\s?-\s?|\s?\.\s?|\s?/\s?))? Area Code FirstDigit cannot be 0 or 1:((\(?[2-9]{1}[\d]{2}\)?(\s|\s?-\s?|\s?\.\s?|\s?/\s?)?))? 3Digit Prefix: (\d{3}) Space/-/. between: (\s|\s?-\s?|\s?\.\s?|\s?/\s?)? 4Digit Suffix: (\d{4}) End String $ *can add country code with out area code!!
Matches
555-5555 1-555-555-5555 1-(555)-555-5555
Non-Matches
0 or 1 starts area code, 1 isn't the country code, non-valid US numbers
Author Rating: The rating for this expression. Philip
Title Test Details Email
Expression
^[-\w'+*$^&%=~!?{}#|/`]{1}([-\w'+*$^&%=~!?{}#|`.]?[-\w'+*$^&%=~!?{}#|`]{1}){0,31}[-\w'+*$^&%=~!?{}#|`]?@(([a-zA-Z0-9]{1}([-a-zA-Z0-9]?[a-zA-Z0-9]{1}){0,31})\.{1})+([a-zA-Z]{2}|[a-zA-Z]{3}|[a-zA-Z]{4}|[a-zA-Z]{6}){1}$
Description
For Email Inputs checks to RFC 5322 Standards (no IP address though Didn't Want them) localhost: cannot start or end with . cannot have .. in it Domain: cannot start with - or . Known problems: TLDDoesntExist@domain.moc domains can be longer then 255. But each Domain can only be 63 then a . is required
Matches
3tt3rsAndNumb3rs@domain.com has-dash@domain.com hasApostrophe.o'leary@domain.org uncommonTLD@domain.museum uncommonTLD@domain.travel uncommonTLD@domain.mobi countryCodeTLD@domain.uk countryCodeTLD@domain.rw lettersInDomain@911.com underscore_inLocal@domain.net subdomain@sub.domain.com local@dash-inDomain.com dot.inLocal@foo.com a@singleLetterLocal.org singleLetterDomain@x.org &*=?^+{}'~@CharsInLocal.net
Non-Matches
missingDomain@.com @missingLocal.org missingatSign.net missingDot@com two@@signs.com .localStartsWithDot@domain.com localEndsWithDot.@domain.com two..consecutiveDots@domain.com domainStartsWithDash@-domain.com domainEndsWithDash@domain-.com
Author Rating: The rating for this expression. Philip
Title Test Details Unit Address (digital Mac Address)
Expression
^(000-)(\\d{5}-){2}\\d{3}$
Description
When working w/ Moto STB, we need to sometimes use the unit address instead of the mac address. The format is always 000-12345-12345-123
Matches
000-00386-67627-142
Non-Matches
00-12345-12345-142, 001-12345-12345-123, 000-12345-12345-12
Author Rating: Not yet rated. Kari
Title Test Details Amount or Price validator
Expression
/^(?!0,?\d)(?:\d{1,3}(?:([, .])\d{2})?(?:\1\d{2})*|(?:\d+))((?!\1)[,.]\d{1,2})?$/u
Description
validate amount or price check: Double value
Matches
10 | 10.00 | 0.50 | 0.01
Non-Matches
01 | 10.0 | 0.5 | 10.500
Author Rating: Not yet rated. regex maker
Title Test Details Match Valid HTML Tags As Browser
Expression
<(/)?(a|abbr|acronym|address|applet|area|b|base|basefont|bdo|big|blockquote|body|br|button|caption|center|cite|code|col|colgroup|dd|del|dir|div|dfn|dl|dt|em|fieldset|font|form|frame|frameset|h[1-6]|head|hr|html|i|iframe|img|input|ins|isindex|kbd|label|legend|li|link|map|menu|meta|noframes|noscript|object|ol|optgroup|option|p|param|pre|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var|xmp){1}(\s(\"[^\"]*\"*|[^>])*)*>
Description
This should match all valid HTML 4.01 tags as a browser would recognize. If you miss a 2nd " it will continue until it finds one to pair with, so if it doesn't find one, it continues until the end. This is how most browsers work I believe. It does have a few flaws, it will match </img> and </input> which is weird, but perhaps I'll fix that eventually.
Matches
</a> <h2 > </h2 asfsdf> <a href="abc>>123">
Non-Matches
< /a> </h 2 asfsdf> <ahref="abc123">
Author Rating: The rating for this expression. John Smith
Title Test Details Match Valid HTML Tags
Expression
</?(a|abbr|acronym|address|applet|area|b|base|basefont|bdo|big|blockquote|body|br|button|caption|center|cite|code|col|colgroup|dd|del|dir|div|dfn|dl|dt|em|fieldset|font|form|frame|frameset|h[1-6]|head|hr|html|i|iframe|img|input|ins|isindex|kbd|label|legend|li|link|map|menu|meta|noframes|noscript|object|ol|optgroup|option|p|param|pre|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|ul|var|xmp)\b((\"[^\"]*\"|\'[^\']*\')*|[^\"\'>])*>
Description
This is very similar to my other expression, except it only matches tags that a browser would read, so if you have an extra " in the tag, it will not count it, and move onto the next possibility.
Matches
</a> <h2 > </a asdfs> </h2 asfsdf> <a href="abc>>123">
Non-Matches
< /a> </h 2 asfsdf> <ahref="abc"123">
Author Rating: Not yet rated. John Smith
Title Test Details Simplify US phone numbers
Expression
(\+1|\+|1)|([^0-9])
Description
Simplify US phone numbers
Matches
+1-555-5555
Non-Matches
5555555
Author Rating: Not yet rated. Justin McNally
Title Test Details Pattern Title
Expression
(?i:[aeiou]+)\B
Description
This regular expression matches all interior vowels. If used as a replace, the following strings would result: Lets meet tomorrow -&gt; Lts mt tmrrw Please come to my party -&gt; Plse cme to my prty I like your style -&gt; I lke yr style
Matches
remove all interior vowels
Non-Matches
A
Author Rating: Not yet rated. Ben Slater
Title Test Details Pattern Title
Expression
(^[0-9]{1,8}|(^[0-9]{1,8}\.{0,1}[0-9]{1,2}))$
Description
Matches number in format XX.XX Please note that this expression allows maximum of 8 digits before the dot and 2 (optional) digits after the dot.
Matches
1.00 | 2345 | 332.3
Non-Matches
.00 | 23333333333.00 | j22.00
Author Rating: Not yet rated. Danil Sholokhov
Title Test Details Pattern Title
Expression
^((0[1-9])|(1[0-2]))$
Description
Matches month, requires that months 1-9 have a leading 0
Matches
01 | 02 | 12
Non-Matches
1 | 2 | 13
Author Rating: The rating for this expression. Tim Macrina
Title Test Details Pattern Title
Expression
^([1-9]{0,1})([0-9]{1})(\.[0-9])?$
Description
Matches numbers 0 through 99.9 Allows only one preceding zero and does not require the decimal point
Matches
1 | 1.1 | 0.1
Non-Matches
01 | 01.1 | 0.10
Author Rating: The rating for this expression. Tim Macrina
Title Test Details Pattern Title
Expression
[-+]((0[0-9]|1[0-3]):([03]0|45)|14:00)
Description
This matches timezone offsets. Also matches non-hour offsets like India (+05:30) and Nepal (+5:45}. See for more timezone information: http://en.wikipedia.org/wiki/Time_zone
Matches
+00:00 | -05:00 | +13:45
Non-Matches
+14:30 | +01:14 | -09:55
Author Rating: Not yet rated. Robert van der Boon
Title Test Details Canadian Provinces
Expression
\b(?:AB|ALB|Alta|alberta|BC|CB|British Columbia|LB|Labrador|MB|Man|Manitoba|N[BLTSU]|Nfld|NF|Newfoundland|NWT|Northwest Territories|Nova Scotia|New Brunswick|Nunavut|ON|ONT|Ontario|PE|PEI|IPE|Prince Edward Island|QC|PC|QUE|QU|Quebec|SK|Sask|Saskatchewan|YT|Yukon|Yukon Territories)\b
Description
Returns ungrouped match on Canadian Province Code, new and old or full province name
Matches
Any Province Code New and Old, Full Province Name
Non-Matches
Some French Abbreviations, All French Province Names
Author Rating: Not yet rated. Adam Cheeseman
Title Test Details Pattern Title
Expression
^[^#]([^ ]+ ){6}[^ ]+$
Description
We've come across the situation where we had to extract the IIS-Log entries without the header information. The data is far more complex than the sample given. Explanation: ^[^#] = lines not beginnin with # ([^ ]+ ){6} = 6 times no space until one space [^ ]+ = no spaces allowed... $ = ...until end of line For further explanation don't hesitate to write E-Mail.
Matches
1111 2222 33 44444 55 6 7777
Non-Matches
#IIS Logfile header
Author Rating: Not yet rated. Volker Roth
Title Test Details Feet-inch to Decimal
Expression
(?:(?:(?<Feet>\d+)[ ]*(?:'|ft)){0,1}[ ]*(?<Inches>\d*(?![/\w])){0,1}(?:[ ,\-]){0,1}(?<Fraction>(?<FracNum>\d*)\/(?<FracDem>\d*)){0,1}(?<Decimal>\.\d*){0,1}(?:\x22| in))|(?:(?<Feet>\d+)[ ]*(?:'|ft)[ ]*){1}
Description
I needed an expression that would break down a written measurement, like 12' 2-15/16", into groups of feet, inches, fractional inches (num/dem). This is a modified expression based on Trevor Braun's orginal regex. Added the "ft" & "in" suffixes and the fraction's Numerator & Denominator groups.
Matches
1ft 2-3/4 in, 2' 3 4/5", 3ft, 4', 5 in, 6", 7.125 in, 3ft 4.5 in
Non-Matches
1ft 2-3/4in, 4in
Author Rating: Not yet rated. Normand Frechette
Title Test Details Validate Multiple Email Addresses
Expression
^((\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*)\s*[,]{0,1}\s*)+$
Description
This will validate multiple email addresses that are comma delimited. You can change it to use commas or semilcolons. If you have to worry about a lot of special characters, you may have to edit it a little bit. It allows white space before and after the comma.
Matches
Test@host.com|email1@host.com,email2@host.com,email3@host.com|email1@host.com, email2@host.com , email3@host.com
Non-Matches
test@test|test@host.com,test@|test@ host.com
Author Rating: The rating for this expression. Dan Lorenz
Title Test Details remove HTML comments from html page
Expression
(\<!--\s*.*?((--\>)|$))
Description
matches comments <!-- --> in string. Singleline option must be enabled. It works well also with multiple comment start tags such as: <!--this is comment <!--and this as well and end-- of comment is!-- >right now-->. It also matches comments in between script or style tags <script> <!-- --> </script>
Matches
<!-- comment <!-- continuing -- >and ends now-->
Non-Matches
< !-- not comment -->, <a href="--">, all other html code
Author Rating: Not yet rated. David Havl
Title Test Details Get all code inside of php tag in page
Expression
(\<\?php\s+.*?((\?\>)|$))
Description
Get code in between php tag <?php and ?> or until end of string if end of tag not found. Singleline option must be enabled!
Matches
<?php this is code in php ?>
Non-Matches
text outside php tag
Author Rating: The rating for this expression. David Havl
Title Test Details Domain restriction check
Expression
[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|gov|biz|info|name|aero|biz|info|jobs|museum)\b
Description
Just a try....
Matches
abc@yatra.com
Non-Matches
hgf@ghjg@jkh.com.fgh.df.dfdf.dfdf
Author Rating: Not yet rated. Leojhose
Title Test Details Pattern Title
Expression
^([1-9]|1[0-2]|0[1-9]){1}(:[0-5][0-9][aApP][mM]){1}$
Description
Very simple expression to validate time on a 12 hour clock, this expression is valid for client-side script validations (RegularExpressionValidator - ASP.NET).
Matches
08:00AM | 10:00am | 7:00pm
Non-Matches
13:00pm | 12:65am
Author Rating: The rating for this expression. Roberto Hernández
Title Test Details Pattern Title
Expression
^[a-zA-Z0-9_\s-]+$
Description
This tests an input string for only a-z and A-Z and only allows underscores, hyphens and spaces. The purpose is to force users to generate legitimate, readable file names that can be streamed from the web.
Matches
123Testing | 123_Testing | 123-Testing This
Non-Matches
!@#Testing | Testing &quot;This&quot; | Don't Forget to Write
Author Rating: The rating for this expression. Paul Fox
Title Test Details Phone Number Validation for Finland
Expression
^((([\+][\s]{0,1})|([0]{2}[\s-]{0,1}))([358]{3})([\s-]{0,1})|([0]{1}))(([1-9]{1}[0-9]{0,1})([\s-]{0,1})([0-9]{2,4})([\s-]{0,1})([0-9]{2,4})([\s-]{0,1}))([0-9]{0,3}){1}$
Description
General phone number validation for Finland. It will pass old and new format numbers. Between numbers space or dash can be used ones. number has to start +358 or 00358 or 0 are code can be 2 or 3 digit. I could not come with better idea then this
Matches
003589999999 | 00 358 999 999 | 00 358 9999 999 | 00 358 999 9999 | 091212 | 09 99 99 99
Non-Matches
050 999 9999 9999 999 | 151212
Author Rating: Not yet rated. Hakan Kucukel
Title Test Details Hijri Date
Expression
^([1-9]|(0|1|2)[0-9]|30)(/|-)([1-9]|1[0-2]|0[1-9])(/|-)(14[0-9]{2})$
Description
Validate Hijri Dates thanks to tutoweb
Matches
24/02/1431 02/12/1400 12/3/1499
Non-Matches
31/02/1431 03/13/1400 12/3/1500
Author Rating: Not yet rated. Mohamed Bakr
Title Test Details Australian Postcodes
Expression
^[2-7]{1}[0-9]{3}$
Description
Matches all valid Australian postcodes
Matches
6012 | 4475 | 2004
Non-Matches
1002 | 9898 | 0004
Author Rating: Not yet rated. Grant Spencer
Title Test Details Currency - Money
Expression
^(-?\$?([1-9]\d{0,2}(,\d{3})*|[1-9]\d*|0|)(.\d{1,2})?|\(\$?([1-9]\d{0,2}(,\d{3})*|[1-9]\d*|0|)(.\d{1,2})?\))$
Description
Handles any kind of money entry. With $ sign or not, with commas or not. With bracket, negative sign or none. Max of 2 decimal points. It's perfect :)
Matches
112.12 $1,112.15 (15555.5) $.12 0.1
Non-Matches
$111,1.15 52.121 (123.12 s123
Author Rating: The rating for this expression. Salam Abbas
Title Test Details Improved SSN
Expression
^((?!000)(?!666)([0-6]\d{2}|7[0-2][0-9]|73[0-3]|7[5-6][0-9]|77[0-1]))(\s|\-)((?!00)\d{2})(\s|\-)((?!0000)\d{4})$
Description
Used Tim Cartwright example and added \s or - for separators.
Matches
455-55-4444|333 22-1111|733 11 1111
Non-Matches
734-00-1111|749-11-0000|666-11-1111
Author Rating: Not yet rated. Bill Fitzpatrick
Title Test Details Email
Expression
^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$
Description
regex to validate email address noteworthy: (1) It allows usernames with 1 or 2 alphanum characters, or 3+ chars can have -._ in the middle. username may NOT start/end with -._ or any other non alphanumeric character. (2) It allows heirarchical domain names (e.g. me@really.big.com). Similar -._ placement rules there. (3) It allows 2-9 character alphabetic-only TLDs (that oughta cover museum and adnauseum :&gt;). (4) No IP email addresses though -- I wouldn't Want to accept that kind of address.
Matches
e@eee.com | eee@e-e.com | eee@ee.eee.museum
Non-Matches
.@eee.com | eee@e-.com | eee@ee.eee.eeeeeeeeee
Author Rating: The rating for this expression. Rob Eberhardt
Title Test Details USA Phone
Expression
^(\d)?[ ]*[\(\.\-]?(\d{3})[\)\.\-]?[ ]*(\d{3})[\.\- ]?(\d{4})[ ]*(x|ext\.?)?[ ]*(\d{1,7})?$
Description
Requires area code. Allows extension. Any common US format works. If you prefer not to require area code, use this: ^(\d)?[ ]*[\(\.\-]?(\d{3})?[\)\.\-]?[ ]*(\d{3})[\.\- ]?(\d{4})[ ]*(x|ext\.?)?[ ]*(\d{1,7})?$
Matches
1 (123) 123-1234 ext. 1234567 | 1 (123) 123-1234 | (123) 123-1234 | (123)123.1234 | 1-123-123-1234 | 1231231234
Non-Matches
123/1234 L. 12345678
Author Rating: Not yet rated. Rob Eberhardt
Title Test Details Pattern Title
Expression
^[a-zA-Z0-9&#192;&#193;&#194;&#195;&#196;&#197;&#198;&#199;&#200;&#201;&#202;&#203;&#204;&#205;&#206;&#207;&#208;&#209;&#210;&#211;&#212;&#213;&#214;&#216;&#217;&#218;&#219;&#220;&#221;&#223;&#224;&#225;&#226;&#227;&#228;&#229;&#230;&#231;&#232;&#233;&#234;&#235;&#236;&#237;&#238;&#239;&#241;&#242;&#243;&#244;&#245;&#246;&#248;&#249;&#250;&#251;&#252;&#253;&#255;\.\,\-\/\']+[a-zA-Z0-9&#192;&#193;&#194;&#195;&#196;&#197;&#198;&#199;&#200;&#201;&#202;&#203;&#204;&#205;&#206;&#207;&#208;&#209;&#210;&#211;&#212;&#213;&#214;&#216;&#217;&#218;&#219;&#220;&#221;&#223;&#224;&#225;&#226;&#227;&#228;&#229;&#230;&#231;&#232;&#233;&#234;&#235;&#236;&#237;&#238;&#239;&#241;&#242;&#243;&#244;&#245;&#246;&#248;&#249;&#250;&#251;&#252;&#253;&#255;\.\,\-\/\' ]+$
Description
This simple regexp should match any possible italian address entry and doesn't match NULL entries (good if address is required). Should work well for any other address (it's been verified against 250 addresses from most european countries, usa and australia. Please mail me if there's something missing
Matches
v.le dell'industria 45/a | via genova 45-3-d | p.zza Garibaldi, 48
Non-Matches
[NULL]
Author Rating: Not yet rated. paolo beltrami
Title Test Details Fixed Local code
Expression
^[A-Z0-9\\-\\&-]{5,12}$
Description
Exchange Local code
Matches
BCAST-E2|ONHER-300812|ONHER-3&00812
Non-Matches
ONHER@@@0812
Author Rating: Not yet rated. clara fernandes
Title Test Details UK Phone Number
Expression
^((\+44\s?\d{4}|\(?\d{5}\)?)\s?\d{6})|((\+44\s?|0)7\d{3}\s?\d{6})$
Description
Allows both mobile and landline UK Telephone Numbers. Allows either Brackets or international prefix. Allows spaces after international prefix and regional code. No brackets for mobile numbers. Please report any problems. Thanks
Matches
01902123456 | 01902 123456 | (01902)123456 | (01902) 123456 | +441902123456 | +441902 123456 | +44 1902123456 | +44 1902 123456 | 07807123456 | 07807 123456 | +447807123456 | +447807 123456 | +44 7807123456 | +44 7807 123456
Non-Matches
11902123456 | (+441902)123456 | 441902123456 | (078)07123456
Author Rating: Not yet rated. Jay Anslow
Title Test Details Uri net.tcp, ftp, http
Expression
^(net.tcp\://|(ht|f)tp(s?)\://)\S+
Description
For validate uri directions that must occur at the beginning of the string net.tcp|http|https|ftp|ftps://
Matches
http://ww.nancy.net/Servicios/ProxyWSService.svc|net.tcp://testwcf02.com:808/Tasacion|ftps://nancy.inet:/ProxyFTP
Non-Matches
C: | C:\inetpub\wwwroot\file.asmx | file.svc
Author Rating: Not yet rated. sarin torrealba
Title Test Details South African Landline numbers
Expression
^(?:(?:\(|)0|\+27|27)(?:1[12345678]|2[123478]|3[1234569]|4[\d]|5[134678])(?:\) | |-|)\d{3}(?: |-|)\d{4}$
Description
Limited by proper dialing codes as per http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa. It will match phone numbers in most common formats that users normally type their phone number. Tested with Perl engine regex in PHP.
Matches
+27121234567 +2712 123 4567 012 123 4567 (012) 123 4567 (012) 123-4567
Non-Matches
27621234567
Author Rating: Not yet rated. Ian van den Heuvel
Title Test Details Payday Loans on Sunday - http://www.ez.sundaypaydayloansdirectlenders.co.uk/
Expression
http://www.ez.sundaypaydayloansdirectlenders.co.uk/weekend-payday-loans.html
Description
This sis the technology advanced era where the individual do all the things electronically .One need not to use nay pen and paper in doing their various tasks. Today the power tool internet has replaced the grueling activates of the past times. Individual need to step out of their home in order to complete their task so as the same in the case of the weekend payday loans UK. Individual in this are require filling up a simple online application form available to them free of cost on the lender’s website with the information like their name, age, contact number, address, amount required and bank account number. The information after get filled is submitted online to the lenders who will verify it and provide their approval. After this within no time the amount sanctioned in this gets wired into the active bank account of the borrower. Apply Right Now At: Http://Www.Ez.Sundaypaydayloansdirectlenders.Co.Uk/
Matches
http://www.ez.sundaypaydayloansdirectlenders.co.uk/weekly-payday-loans.html
Non-Matches
http://www.ez.sundaypaydayloansdirectlenders.co.uk/1-2-3-4-and-12-week-payday-loans.html
Author Rating: The rating for this expression. GeorgeVocA
Change page:   |    Displaying page 27 of 35 pages; Items 2601 to 2700

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