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
^(((((0[1-9])|(1\d)|(2[0-8]))-((0[1-9])|(1[0-2])))|((31-((0[13578])|(1[02])))|((29|30)-((0[1,3-9])|(1[0-2])))))-((20[0-9][0-9]))|(29-02-20(([02468][048])|([13579][26]))))$
Description
This expression validates a date field in the European DD-MM-YYYY format. Days are validate for the given month and year.
Matches
05-01-2002 | 29-02-2004 | 31-12-2002
Non-Matches
1-1-02 | 29-02-2002 | 31-11-2002
Author Rating: The rating for this expression. Jörg Maag
   Displaying page 1 of 1 pages; Items 1 to 1

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