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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
((0[1-9])|(1[02]))/\d{2}
Description
Fromat check for MM/YY, checks month is 1-12 and any 2 digit year.
Matches
01/00 | 12/99
Non-Matches
13/00 | 12/AS
Author Rating: Not yet rated. Andrew Balaschak
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: Fix
Name: Meepster
Date: 3/12/2014 10:46:46 PM
Comment:
Should be ^((0[1-9])|(1[0-2]))/\d{2}$ or ^((0[1-9])|(1[012]))/\d{2}$ this nukes poor November otherwise


Title: Does not work with November
Name: Espo
Date: 4/28/2010 8:25:19 AM
Comment:
Does not work with November


Title: Pattern Title
Name: Jerode
Date: 3/9/2007 4:07:23 PM
Comment:
((0[1-9])|(1[012]))/\d{2} Update to get month 11.


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