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\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]))|((((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])))))/((19[0-9][0-9]))|(29/02/20(([02468][048])|([13579][26])))|(29/02/19(([02468][048])|([13579][26]))))$
Description
This expression is an improved version of Jörg Maag. It checks a date field in the Australian DD/MM/YYYY format. Besides, it also validates leap year between 1900 and 2099.
Matches
29/02/1992 | 29/02/2000 | 29/02/2004
Non-Matches
29/02/1892 | 29/02/2100 | 29/02/3004
Author Rating: Not yet rated. Yik Kheam Tan
Source Yik Kheam Tan
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: Mr
Name: Ravi
Date: 6/29/2006 6:16:39 AM
Comment:
Australian date format (dd/MM/yyyy) is also UK date format. and this has been extremely good


Title: Mr.
Name: Olaniyi
Date: 11/4/2004 7:23:51 AM
Comment:
Fantastic


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