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: 4672 regular expressions found.

Change page:   |    Displaying page 216 of 234 pages; Items 4301 to 4320
Title Test Details Capture legal numbering
Expression
((?:\d+\.){1,5})
Description
Captures numbers like found in legal contracts e.g.: 1.1. Blah blah 1.1.2. Blah blah blah. Up to 5 levels - or edit {1,5} qualifier.
Matches
1. | 1.2. | 1.2.3.4.5.
Non-Matches
1 | 10 | 1.2.3.4.5.6.
Author Rating: Not yet rated. Sergey Podlesny
Title Test Details Split camelCase word
Expression
(?<!^)(?=[A-Z])
Description
Used with the Regex.Split() function in .NET, this will easily split a camelCase word on the upper case letters, while not dropping any characters. (That makes it different from most split() functions -- it does not drop any characters.) More details in my blog - http://blogs.lotterypost.com/speednet/2007/08/simple-function-to-split-camelcase-words.htm
Matches
camelCase
Non-Matches
<empty string>
Author Rating: Not yet rated. Speednet
Title Test Details SQL Server 2005 datetime validation
Expression
^((((((((jan(uary)?)|(mar(ch)?)|(may)|(july?)|(aug(ust)?)|(oct(ober)?)|(dec(ember)?)) ((3[01])|29))|(((apr(il)?)|(june?)|(sep(tember)?)|(nov(ember)?)) ((30)|(29)))|(((jan(uary)?)|(feb(ruary)?|(mar(ch)?)|(apr(il)?)|(may)|(june?)|(july?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?))) (2[0-8]|(1\d)|(0?[1-9])))),? )|(((((1[02])|(0?[13578]))[\.\-/]((3[01])|29))|(((11)|(0?[469]))[\.\-/]((30)|(29)))|(((1[0-2])|(0?[1-9]))[\.\-/](2[0-8]|(1\d)|(0?[1-9]))))[\.\-/])|(((((3[01])|29)[ \-\./]((jan(uary)?)|(mar(ch)?)|(may)|(july?)|(aug(ust)?)|(oct(ober)?)|(dec(ember)?)))|(((30)|(29))[ \.\-/]((apr(il)?)|(june?)|(sep(tember)?)|(nov(ember)?)))|((2[0-8]|(1\d)|(0?[1-9]))[ \.\-/]((jan(uary)?)|(feb(ruary)?|(mar(ch)?)|(apr(il)?)|(may)|(june?)|(july?)|(aug(ust)?)|(sep(tember)?)|(oct(ober)?)|(nov(ember)?)|(dec(ember)?)))))[ \-\./])|((((3[01])|29)((jan)|(mar)|(may)|(jul)|(aug)|(oct)|(dec)))|(((30)|(29))((apr)|(jun)|(sep)|(nov)))|((2[0-8]|(1\d)|(0[1-9]))((jan)|(feb)|(mar)|(apr)|(may)|(jun)|(jul)|(aug)|(sep)|(oct)|(nov)|(dec)))))(((175[3-9])|(17[6-9]\d)|(1[89]\d{2})|[2-9]\d{3})|\d{2}))|((((175[3-9])|(17[6-9]\d)|(1[89]\d{2})|[2-9]\d{3})|\d{2})((((1[02])|(0[13578]))((3[01])|29))|(((11)|(0[469]))((30)|(29)))|(((1[0-2])|(0[1-9]))(2[0-8]|(1\d)|(0[1-9])))))|(((29feb)|(29[ \.\-/]feb(ruary)?[ \.\-/])|(feb(ruary)? 29,? ?)|(0?2[\.\-/]29[\.\-/]))((((([2468][048])|([3579][26]))00)|(17((56)|([68][048])|([79][26])))|(((1[89])|([2-9]\d))(([2468][048])|([13579][26])|(0[48]))))|(([02468][048])|([13579][26]))))|(((((([2468][048])|([3579][26]))00)|(17((56)|([68][048])|([79][26])))|(((1[89])|([2-9]\d))(([2468][048])|([13579][26])|(0[48]))))|(([02468][048])|([13579][26])))(0229)))$
Description
This expression validates most legal dates for a SQL Server 2005 datetime format. It includes checking for leap years. (Written for a default U.S. install, not sure what results would be on versions for different regions) For double digit dates, 00 is considered to be the year 2000, so leap years will be valid. This will handle dates in the following formats yymmdd yyyymmdd m/d/yy mm/dd/yy m/d/yyyy mm/dd/yyyy m-d-yy mm-dd-yy m-d-yyyy mm-dd-yyyy m.d.yy mm.dd.yy m.d.yyyy mm.dd.yyyy mmmm dd yy mmmm dd yyyy mmmm dd, yy mmmm dd, yyyy mmmm d yy mmmm d yyyy mmmm d, yy mmmm d, yyyy d mmmm yy d mmmm yyyy dd mmmm yy dd mmmm yyyy d-mmmm-yy d-mmmm-yyyy dd-mmmm-yy dd-mmmm-yyyy d.mmmm.yy d.mmmm.yyyy dd.mmmm.yy dd.mmmm.yyyy d/mmmm/yy d/mmmm/yyyy dd/mmmm/yy dd/mmmm/yyyy mmm dd yy mmm dd yyyy mmm dd, yy mmm dd, yyyy mmm d yy mmm d yyyy mmm d, yy mmm d, yyyy dd mmm yy dd mmm yyyy d mmm yy d mmm yyyy ddmmmyy ddmmmyyyy dd-mmm-yy dd-mmm-yyyy d-mmm-yy d-mmm-yyyy dd.mmm.yy dd.mmm.yyyy d.mmm.yy d.mmm.yyyy dd/mmm/yy dd/mmm/yyyy d/mmm/yy d/mmm/yyyy Note: This will also handle mixing and matching of separator characters. for example: '1/1.2000', It would appear that this is valid in SQL Server 2005. This is written to work for ECMA script (include the ignore case parameter i), but should also work in .Net. I have tested this in firefox 2.0 (Blazing Fast) and IE 7.0 and both seem to work just fine. I have not tested it in .Net. It's pretty large and I have not attempted to optimize it. Feel free to optimize it any way you like.
Matches
20000229 | 000229 | 12/31/9999 | Dec 02, 99 | 30MAR1753 | Feb 29, 1756 | 1.1.2008
Non-Matches
21000229 | 990229 | 12/32/9999 | Xxx 02, 99 | 30MAR1752 | Feb 29, 1752 | 1.0.2008
Author Rating: The rating for this expression. Christopher Strolia-Davis
Title Test Details Pattern Title
Expression
^((Bob)|(John)|(Mary)).*$(?<!White)
Description
&quot;Starts with but does not end with.&quot; I needed a pattern to require certain first (and optional middle) names, but to fail for certain last names. So if Bob, John, and Mary are acceptable first names but the White's are always rejected then...
Matches
Bob Jones | John Smith | Mary Jane Smith
Non-Matches
Bob White | Mary Doe White | Gina Smith
Author Rating: Not yet rated. Eli Robillard
Title Test Details Pattern Title
Expression
^[0-9]{4}\s{0,2}[a-zA-z]{2}$
Description
Dutch postalcode expression. 4 digits followed by max. two spaces end ending on two letters.
Matches
4006 AB | 4006ab | 4006 AB
Non-Matches
4006.ab | 4006_ab | 4006/ab
Author Rating: Not yet rated. martijn db
Title Test Details RFC2822 Compliant Email Address
Expression
^(?i:(?<local_part>[a-z0-9!#$%^&*{}'`+=-_|/?]+(?:\.[a-z0-9!#$%^&*{}'`+=-_|/?]+)*)@(?<labels>[a-z0-9]+\z?.*[a-z0-9-_]+)*(?<tld>\.[a-z0-9]{2,}))$
Description
RFC2822 compliant. Includes all special characters, except for allowance of quoted local-part. Also disallows '.' (period) to be at the front or end of local-part, or occurr more than once consecutively. It does allow for optional infinite number of sub-domains. The following standards are not enforced, due to RegExp limitations (unable to check for group string length): As per RFC2821 the local-part may have a maximum length of 64 characters, while the domain name may have a maximum length of 255 characters. Each domain label must be between 1 and 63 characters long, while the total length of the domain name may not exceed 255 characters.
Matches
my.sub.test.server@sub.host.server.uk.co
Non-Matches
.stubs@com|.me@server.com|my..name@server.com
Author Rating: The rating for this expression. Mike Bronner
Title Test Details RFC Compliant URI
Expression
^([A-Za-z0-9]+[A-Za-z0-9-_]*\.)*(([A-Za-z0-9]+[A-Za-z0-9-_]*){3,}\.)+([A-Za-z0-9]{2,4}\.?)+)$
Description
RFC compliant. Disallows '.' (period) to be at the front or end, or occurr more than once consecutively. It does allow for optional infinite number of sub-domains. However, the total length of the URI has not been enforced: each label must be between 1 and 63 characters long, while the total length of the domain name may not exceed 255 characters. Note that this RegEx does not check the validity of the protocol.
Matches
mine.com|me.mine.com
Non-Matches
com|me..com|me.com|me..mine.com|.mine.com
Author Rating: Not yet rated. Mike Bronner
Title Test Details Integer with 1000s Separator
Expression
^[1-9]{1}[0-9]{0,2}([\.\,]?[0-9]{3})*$
Description
Matches whole numbers with the two most common thousands-separators (comma and period). Will not handle decimals.
Matches
1,000|1.000|1|10|100|1000
Non-Matches
1,00|1,0|1,,000|.1|10.
Author Rating: Not yet rated. Mike Bronner
Title Test Details Pattern Title
Expression
^([+]39)?((38[{8,9}|0])|(34[{7-9}|0])|(36[6|8|0])|(33[{3-9}|0])|(32[{8,9}]))([\d]{7})$
Description
Validates a Italian mobile phone number with (or without) the International code
Matches
+393471234567 | 3381234567
Non-Matches
+39 3401234567 | 347 1234567 | 338-1234567
Author Rating: Not yet rated. Fabrizio Fortini
Title Test Details Pattern Title
Expression
^(LDAP://([\w]+/)?(CN=['\w\s\-\&amp;]+,)*(OU=['\w\s\-\&amp;]+,)*(DC=['\w\s\-\&amp;]+[,]*)+)$
Description
LDAP path of Microsoft Active Directory entries (Organizational Units, Users, Computers and Groups). Requires LDAP protocol especification and allows a server name at the beginning.
Matches
LDAP://MyServer/CN=Peter,OU=Users,DC=dc1,DC=name,DC=com | LDAP://OU=Dep1,OU=Users,DC=name,DC=com | L
Non-Matches
LDAP:///CN=Peter,OU=Users,DC=dc1,DC=name,DC=com | LDAP://myserver1/myserver2/MyServer/CN=Peter,OU=Us
Author Rating: Not yet rated. Juan Morató
Title Test Details JavaScript: American Names (No latin/cyrilic characters)
Expression
^(([A-Z]{1}[a-z]+([\-][A-Z]{1}[a-z]+)?)([ ]([A-Z]\.)){0,2}[ ](([A-Z]{1}[a-z]*)|([O]{1}[\']{1}[A-Z][a-z]{2,}))([ ](Jr\.|Sr\.|IV|III|II))?)$
Description
Allows: 1) first last 2) first mi last 3) first mi mi last 4) first mi O'last 5) first mi mi O'last 6) first-first last 7) first-first mi last 8) first-first mi mi last 9) first-first mi O'last 10)first-first mi mi O'last
Matches
Ryan O'Malley | Joseph R. Tanner Jr. | Mary-Lou E. Jones | George H. W. Bush
Non-Matches
George Herbert Walker Bush | George Walker Bush | RYan O'Malley | Joseph Tanner, Jr. | Mary-lou E. Jones
Author Rating: The rating for this expression. Anton Thorn
Title Test Details URI Validation
Expression
if(!isValidURL($_POST['url']){ echo "do something"; }
Description
function isValidURL($url) { $protocol = "((http|ftp|https):\/\/)?"; $domain = "([[:alpha:]][-[:alnum:]]*[[:alnum:]])(\.[[:alpha:]][-[:alnum:]]*[[:alpha:]])+"; $dir = "(/[[:alpha:]][-[:alnum:]]*[[:alnum:]])*"; $page = "(/[[:alpha:]][-[:alnum:]]*\.[[:alpha:]]{3,5})?"; $getstring = "(\?([[:alnum:]][-_%[:alnum:]]*=[-_%[:alnum:]]+)(&([[:alnum:]][-_%[:alnum:]]*=[-_%[:alnum:]]+))*)?"; $pattern = "^".$protocol.$domain.$dir.$page.$getstring."$"; return eregi($pattern, $url); } //----------------- Be sure to put each variable ($protocol, $domain, $dir, $page, $getstring, $pattern, and 'return') on separate line!
Matches
www.google.co.uk | www9.g-88gle.co.uk | http://path1/to-page | http://phpinfo.php
Non-Matches
9ww.google.3o.uk | www.google4.co.uk3 | http://path1-/2-page | http://phpinfo.php4
Author Rating: The rating for this expression. Ardjuna Pandu
Title Test Details Get one and two numeric digits between 1 and 12 inclusive
Expression
^1?[1-2]$|^[1-9]$|^[1]0$
Description
Get one and two numeric digits between 1 and 12 inclusive, positive numbers only (Zeros are excluded and so is values higher than 12).
Matches
1 | 6 | 12
Non-Matches
-1 | 0 | 13
Author Rating: The rating for this expression. Lars Brandt
Title Test Details parts of an address
Expression
^ (?<FullStreet> (?<Detail>(?:C/[-O]?[a-z\ ]*?)?\ *)? (?<POBox>P[\.\ ]?O[\.\ ]?\ ?Box\ *\d+) | (?:(?<Detail>(?:C/[-O]?)?[\w\ ,\.']+?),?/?\ *?)? \ *?\b(?<StreetNum>(?:\d+-)?\d+[a-z]?)[\ ] (?<StreetFullName> (?<StreetName>(?:[\w\ '-]|st)+) (?:\b(?<StreetType>ALLEY|ALLY|APPROACH|APP|ARCADE|ARC|AVENUE|AVE|BOULEVARD|BLVD|BROW|BYPASS|BYPA|CAUSEWAY|CWAY|CIRCUIT|CCT|CIRCUS|CIRC|CLOSE|CL|COPSE|CPSE|CORNER|CNR|COVE|COURT|CRT|CT|CRESCENT|CRES|DRIVE|DR|END|ESPLANANDE|ESP|FLAT|FREEWAY|FWAY|FRONTAGE|FRNT|GARDENS|GDNS|GLADE|GLD|GLEN|GREEN|GRN|GROVE|GR|HEIGHTS|HTS|HIGHWAY|HWY|LANE|LINK|LOOP|MALL|MEWS|PACKET|PCKT|PARADE|PDE|PARK|PARKWAY|PKWY|PLACE|PL|PROMENADE|PROM|RESERVE|RES|RIDGE|RDGE|RISE|ROAD|RD|ROW|SQUARE|SQ|STREET|ST|STRIP|STRP|TARN|TERRACE|TCE|THOROUGHFARE|TFRE|TRACK|TRAC|TRUNKWAY|TWAY|VIEW|VISTA|VSTA|WALK|WAY|WALKWAY|WWAY|YARD )\b) ) ) (?:,?\ *?(?<Town>[a-z'.]+(?:,?\ +[a-z'.]+)*?))? (?:,?\ *?(?<State>Victoria|VIC|New South Wales|NSW|South Australia|SA|Northern Territory|NT|West Australia|WA|Tasmania|TAS|Australian Capital Territory|ACT|Queensland|QLD))? (?:,?\ *?(?<PostalCode>\d{3,4}))? (?:,?\ *?(?<Country>Au(?:stralia)?))? (?:(?=[^$])\s)* $
Description
Divides a single line address into detail, street number, street name , street type, town, postcode, state, country. designed for Australian addresses but can be modified. switches: ignore expression whitespace, case insensitive. teseted using silverlight tester from regexlib. based on regex by Zijian http://regexlib.com/REDetails.aspx?regexp_id=1964
Matches
Shop S1, Sussex Centre, 401 Sussex St, Sydney; 28 Lidco Street, Arndell Park, Sydney 2148; Level 1, 198 Elizabeth St, Surry Hills 2010; Room 2, Level 1, 198 Elizabeth St, Surry Hills, NSW 2010; 541 Pittwater Rd, Brookvale 2100; 2 Maniangi Court, Macedon, 3440; PO Box 1531, Keveland, QLD 4163; St Lucia Golf Links, 22 St George St, St Lucia, QLD; PO Box 1531, St Lucia, QLD 4163;
Non-Matches
M/S 1014 Bell 4408; Kingswood Hostel Ramsay Street Toowoomba 4350; 15osborne Court Logan Holme 4129; Miamba Condamine 4416; Crows Nest Nursing Home Crows Nest 4352; 30 Skyline Drive M/S 617 Toowoomba Mail 4352; M/S 1945 Peranga 4352; 22a Wirra Wirra Toowoomba 4350; C/- Blue Care, Stenner Street Toowoomba 4350; Carline' M/S 848 Warwick 4370; 336 Oakey-Biddeston Rd, Ms 212 Oakey 4401; Kingswood Hostel Ramsay Toowoomba 4350; Shalom N/H - Rosalie & Lockyer Toowoomba 4350; Unit 2 Glenfield Grange,110 Spring Stree Toowoomba 4350; Villa 65 Westhaven Retirement Village Toowoomba 4350; Y
Author Rating: The rating for this expression. v
Title Test Details min-max field length
Expression
^[\w\W]{1,1500}$
Description
Matches 1-1500 characters including carriage returns ("\r\n")
Matches
a|1|\t|\r\n|(1-1500 characters)1aBc/.<+;12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890
Non-Matches
(0 or 1501 characters) 1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567
Author Rating: Not yet rated. Maud Dib
Title Test Details LastName , Name
Expression
^(?n:(?<Apellidos>(?-i:[A-Z]\'?(\w+?|\.)\ ??){1,4})?[\s,\s]*(?<Nombres>(?-i:[A-Z]\'?(\w+?|\.)\ ??){1,4})?)$
Description
Separa <Apellidos>, <Nombres>
Matches
López Benites, Arturo Fernando | López B., A. Fernando | O'Higgins, Gabriel
Non-Matches
cuando se dan más de 4 o bien Apellidos o Nombres pero es editable {1,4}
Author Rating: The rating for this expression. Gabriel Jara
Title Test Details Pattern Title
Expression
(?=^.{6,51}$)([A-Za-z]{1})([A-Za-z0-9!@#$%_\^\&amp;\*\-\.\?]{5,49})$
Description
This expression was originally developed for user names. Matching text must have 6 - 50 characters, cannot contain spaces, must begin with an alpha character, can contain mixed case alpha, digits, and the following special characters: ! @ # $ % ^ &amp; * - . _ ?
Matches
aB!@#%&amp;^$.?*-0123456789Yz | user@somedomain.com | Excla!Us_er
Non-Matches
1234567890 | aB1()[]{};:'&quot;,&lt;&gt;/\_=0Yz | !exclaUser
Author Rating: The rating for this expression. John Tobler
Title Test Details Pattern Title
Expression
\d{5}\-\d{3}
Description
Brazilian Postal Box RegExp validation
Matches
02245-999
Non-Matches
ABCDE-FGH
Author Rating: Not yet rated. Valmir Cinquini
Title Test Details Buy WoW Gold
Expression
Buy WoW Gold
Description
www.powerleveling2000.com is the professional website for <a href="http://www.powerleveling2000.com"><strong>Wow power leveling</strong></a>. We have been in wow power leveling service for over 3 years and made so many customers be our friends. Professional wow powerleveling, fast, cheap and secure service. We power level your character according to your special requirements with no extra charges or hidden fees. Help you get your favor is our goal. And we are so happy that customers trust us because we upgrade your toons by experience levelers only. Enjoy World of Warcraft, Enjoy our service of World of Warcraft power leveling. Easy If you want to be the most powerful in game, you should have the enough <a href="http://www.powerleveling2000.com/WowGold.aspx"><strong>WOW Gold </strong></a>then you can buy the best weapons, equipment, etc. But Farming WOW Gold is very boring and waste a lot of time. Now, you can Buy WOW Gold from us, just one minute, you will be rich in WOW. Fast If you have bought gold from others before, you may know that the deliver time of WOW Gold is too long. But now you are visiting Euwowgold.com, we have own farmers, and we are not middleman, we can give you the gold as soon as possible, face to face or mail, choose you like. Reliable We farm the WOW Gold by manual, no bots, no cheats, no hacks. We have the 24*7*365 Online Support. You can contact us anytime via Live Chat, E-mail, IM and Telephone. When ordering for a wow power leveling service, please bear in mind that... - Your account will be safe with us. - Your account is fully secure. - We will not take any of your equipment or expend any of your gold. - While leveling your character, our master players will not talk to anyone else. - Our goal is to start all customer orders within 1 hour. In fact, most customer orders was started within 1-2 hours.
Matches
www.powerleveling2000.com is the professional website for <a
Non-Matches
www.powerleveling2000.com is the professional website for <a
Author Rating: Not yet rated. liu marry
Title Test Details World of Warcraft Powerleveling
Expression
World of Warcraft Powerleveling
Description
World of Warcraft Powerleveling is our primary service! You can purchase our service at a much lower price than any of our competitors. <A href="http://www.powerleveling2000.com/">wow power leveling </A>We don't use any Bots or Macros to powerlevel your character. All of our employees are skilled World of Warcraft players, who personally powerlevel your character, to provide even more safety to your account. As we know, when you first start a game of World of Warcraft, you will be taken to your race's starting area. All the races except trolls and gnomes begin in a unique location. So it takes a long time to powerlevel a powerful character for many players, for the player's energy and time are limited. <A href="http://www.powerleveling2000.com/">wow power leveling </A>We will never involve your character in PKing, KSing or any other behavior that is frowned upon.In our forum,we report the orders' status each day,so you can check your order's status when you want.wow powerleveling, We present our processing time around 9:00am PST([Pacific Standard Time] is GMT-8) everyday,you can check your Condition during this time in our forum.If you want to know your status in another time ,please contract with our live help service.wow powerleveling. Please let us do this task for you, <A href="http://www.powerleveling2000.com/">wow power leveling </A> wow gold one of our World of Warcraft powerlevelers work for you as a full- time job other than part-time. We will complete the wow power leveling in a very short time, and you can play the character at your desired level. During the progress of World of Warcraft powerleveling, you can get all information about your World of Warcraft powerleveling status anytime. wow power leveling
Matches
World of Warcraft Powerleveling
Non-Matches
World of Warcraft Powerleveling
Author Rating: The rating for this expression. liu marry
Change page:   |    Displaying page 216 of 234 pages; Items 4301 to 4320

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