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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Pattern Title
Expression
^(([1-9])|(0[1-9])|(1[0-2]))\/((0[1-9])|([1-31]))\/((\d{2})|(\d{4}))$
Description
Matches U.S. dates with leading zeros and without and with 2 or four digit years
Matches
01/01/2001 | 1/1/2001 | 01/1/01
Non-Matches
13/01/2001 | 1/2/100 | 09/32/2001
Author Rating: The rating for this expression. Chris Becker
   Displaying page 1 of 1 pages; Items 1 to 1

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