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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Date Format
Expression
^(([0-9])|([0-2][0-9])|([3][0-1]))\/(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\/\d{4}$
Description
This regular expressions matches dates of the form dd/MMM/yyyy where dd can be 1 or 2 digits long, MMM is a month abbreviation, and yyyy is always 4 digits long.
Matches
1/Feb/2007 | 03/Jun/2007 | 31/Dec/2007
Non-Matches
1/2/2007 | 03/Jun/07 | 31-Dec-2007
Author Rating: Not yet rated. Ken
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: Matches invalid dates
Name: Michael Ash
Date: 9/12/2007 12:42:39 PM
Comment:
Will match 31/Feb/2007. Doesn't check days per month or leap years


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