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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find MMDD
Expression
^((0[123456789]|1[0-2])(0[1-3]|1[0-9]|2[0-9]))|((0[13456789]|1[0-2])(30))|((0[13578]|1[02])(31))$
Description
Evaluates a date in the format of MMDD. Will evaluate month day ranges accurately with Feb going up to 29.
Matches
0229 | 0331 | 0630 | 0902
Non-Matches
0230 | 0431 | 1245 | 1299 | 0011
Author Rating: The rating for this expression. Aaron Blaquiere
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: Some Dates do not work
Name: JR
Date: 6/13/2012 6:08:10 PM
Comment:
I tried a few dates in the MMDD format such as 1206 and 0607 and it does not show up as a valid match.


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