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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Date
Expression
^(0?\d|1[012])\/([012]?\d|3[01])\/(\d{2}|\d{4})$
Description
This is the US date expression. It's very flexible on omitting numbers. $1 = month $2 = day $3 = year
Matches
1/1/10 , 12/12/2010, 01/01/2010
Non-Matches
1JAN10
Author Rating: Not yet rated. Dusko Vuksanovic
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

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