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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(3[0-1]|2[0-9]|1[0-9]|0[1-9])[\s{1}|\/|-](Jan|JAN|Feb|FEB|Mar|MAR|Apr|APR|May|MAY|Jun|JUN|Jul|JUL|Aug|AUG|Sep|SEP|Oct|OCT|Nov|NOV|Dec|DEC)[\s{1}|\/|-]\d{4}$
Description
More flexible date validator. Allows either spaces, / or - as dividers, also allows for fully uppercase months, year as 4 digit.
Matches
01 JAN 2003 | 31/Dec/2002 | 20-Apr-2003
Non-Matches
32 Jan 2003 | 00 Dec 2003 | 10 dec 2003
Author Rating: Not yet rated. Ian Wallace
Source Ian Wallace
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: *
Name: Tiberiu
Date: 7/24/2009 2:43:04 AM
Comment:
Not so good.22-Ian 1989 is accepted


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