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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(0[1-9]|[12][0-9]|3[01])\s(J(anuary|uly)|Ma(rch|y)|August|(Octo|Decem)ber)\s[1-9][0-9]{3}| (0[1-9]|[12][0-9]|30)\s(April|June|(Sept|Nov)ember)\s[1-9][0-9]{3}| (0[1-9]|1[0-9]|2[0-8])\sFebruary\s[1-9][0-9]{3}| 29\sFebruary\s((0[48]|[2468][048]|[13579][26])00|[0-9]{2}(0[48]|[2468][048]|[13579][26]))
Description
Verifies all valid Gregorian dates of the form DD MONTH YY, taking days/month and leap years into account.
Matches
09 March 2005 | 29 February 2004 | 31 December 9999
Non-Matches
32 March 2005 | 29 February 2005 | 2005-03-09
Author Rating: Not yet rated. Daniel Vandersluis
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: Leap Year Not Working
Name: Pritesh
Date: 9/26/2007 3:01:19 AM
Comment:
Leap Year Is Not Working


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