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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Date With / and Month Name
Expression
^(3[0-1]|2[0-9]|1[0-9]|0[1-9])[\/](Jan|JAN|Feb|FEB|Mar|MAR|Apr|APR|May|MAY|Jun|JUN|Jul|JUL|Aug|AUG|Sep|SEP|Oct|OCT|Nov|NOV|Dec|DEC)[\/]\d{4}$
Description
This regular expressions matches dates of the form XX/XXX/YYYY where XX can be 1 or 2 digits long, XXX can be JAN/Jan/jan(Month name in 3 char) and YYYY is always 4 digits long.
Matches
11/jun/1980, 11/JUN/1980, 11/Jun/1980
Non-Matches
11 jun 1980, 11-jun-1980
Author Rating: The rating for this expression. Umesh Chand Daiya
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: Date With / and Month Name
Name: Jurisfox
Date: 9/4/2008 2:34:42 AM
Comment:
>This regular expressions matches dates of the form XX/XXX/YYYY where XX can be 1 or 2 digits long Never, because you set two digits as precondition inside the capturing group (...0[1-9])


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