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 |
|
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