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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Miltary Format Date: dd MMM yy
Expression
^[0-3]{1}[0-9]{1}[ ]{1}(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec|JAN|FEB|MAR|APR|MAY|JUN|JUL|AUG|SEP|OCT|NOV|DEC|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec){1}[ ]{1}[0-9]{2}$
Description
This will test to see if a date is formatted in the military style of 'dd MMM yy'
Matches
12 DEC 08 | 03 jan 91 | 30 Mar 82
Non-Matches
41 DEC 08 | 03 jan 1991 | 30 Mar '82
Author Rating: Not yet rated. stan naspinski
Source self
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: Day per month
Name: Michael Ash
Date: 12/22/2008 10:33:40 AM
Comment:
Doesn't check number of days in the month


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