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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find MMM dd, yyyy Date
Expression
^(?:(((Jan(uary)?|Ma(r(ch)?|y)|Jul(y)?|Aug(ust)?|Oct(ober)?|Dec(ember)?)\ 31)|((Jan(uary)?|Ma(r(ch)?|y)|Apr(il)?|Ju((ly?)|(ne?))|Aug(ust)?|Oct(ober)?|(Sept|Nov|Dec)(ember)?)\ (0?[1-9]|([12]\d)|30))|(Feb(ruary)?\ (0?[1-9]|1\d|2[0-8]|(29(?=,\ ((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))))))\,\ ((1[6-9]|[2-9]\d)\d{2}))
Description
This RE validate Dates in the MMM dd, yyyy format from Jan 1, 1600 to Dec 31, 9999. The format is as follows: The name or 3 letter abbreivation, without a period, of the month, then a space then the day value then a comma then a space finally the year. The correct number of day are validated for each month include leap years. The name of month is case sensitive.
Matches
Jan 1, 2003 | February 29, 2004 | November 02, 3202
Non-Matches
Feb 29, 2003 | Apr 31, 1978 | jan 33,3333
Author Rating: Not yet rated. Michael Ash
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
Comment
 
Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: http://www.kobe7playoff.com/
Name: kobe 7
Date: 5/18/2012 2:11:17 AM
Comment:
http://www.kobe7playoff.com/ http://www.kobe7playoff.com/nike-lebron-9ix-c-24.html http://www.kobe7playoff.com/dwyane-wade-shoes-c-15.html


Title: http://www.myairmax2012shoesoutlet.com/
Name: nike air max mens
Date: 5/18/2012 12:01:36 AM
Comment:
http://www.myairmax2012shoesoutlet.com/ http://www.myairmax2012shoesoutlet.com/nike-air-max-2012-c-1.html http://www.myairmax2012shoesoutlet.com/nike-air-max-2011-c-4.html


Title: http://www.roseshoesoutlet2012.com
Name: Adizero Rose 1.0
Date: 5/17/2012 11:50:35 PM
Comment:
http://www.roseshoesoutlet2012.com http://www.roseshoesoutlet2012.com/adidas-adizero-rose-10-c-2.html http://www.roseshoesoutlet2012.com/adizero-crazy-light-c-3.html


Title: mmm dd, yyyy
Name: hi
Date: 11/1/2008 2:02:34 AM
Comment:
the above regular expression is unable to find the mmm dd, yyyy format can u give me the regular expression for mmm dd, yyyy


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