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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^\d{2}\s{1}(Jan|Feb|Mar|Apr|May|Jun|Jul|Apr|Sep|Oct|Nov|Dec)\s{1}\d{4}$
Description
valid date base on Month
Matches
01 Jan 2003
Non-Matches
01 01 2003
Author Rating: Not yet rated. stephen lam
Source ^\d{2}\s{1}(Jan|Feb|Mar|Apr|May|Jun|Jul|Apr|Sep|Oct|Nov|Dec)\s{1}\d{4}$
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: Need modification in this pattern
Name: Waseem
Date: 10/19/2010 12:02:44 PM
Comment:
Hi This pattern work on 01 Jan 2003 date format but I want to modify this RE to work on 01-Jan-2003. Infact I have modified it like ^\d{2}\-{1}(Jan|Feb|Mar|Apr|May|Jun|Jul|Apr|Sep|Oct|Nov|Dec)\s{1}\-{4}$ It is working in the Regixlib tester but It is not compatible with pcre. Can anyone suggest what would be the solution so this pattern work with pcre. I need sol ASAP


Title: Error in pattern
Name: Dean Hutchison
Date: 10/9/2006 12:20:31 PM
Comment:
The pattern has an error in the months listed. After "Jul" should come "Aug", but it is incorrectly "Apr". Apart from that it works very well.


Title: re: great
Name: Michael Ash
Date: 2/19/2004 10:06:16 AM
Comment:
Not the only one. Here's another. http://www.regexlib.com/REDetails.aspx?regexp_id=405


Title: great
Name: Peter
Date: 2/19/2004 7:51:25 AM
Comment:
Great, the only date expression so far that takes format like: "dd MMM yyyy" I like it.


Title: Title
Name: Stephen
Date: 6/22/2003 3:49:37 AM
Comment:
valid date base on Month


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