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]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$
Description
dd/MM/yyyy with leap years 100% integrated Valid years : from 1900 to 9999. As usual, many tests have been made. This was requested by a user : http://www.regexlib.com/REDetails.aspx?regexp_id=409
Matches
29/02/2000 | 30/04/2003 | 01/01/2003
Non-Matches
29/02/2001 | 30-04-2003 | 1/1/1899
Author Rating: The rating for this expression. Dany Lauener
Source http://www.regexlib.com/REDetails.aspx?regexp_id=409 by myself
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: Thanks Danny
Name: Ajay
Date: 5/18/2017 8:01:39 AM
Comment:
Perfect Regex for date validation. Great job.


Title: RegEx
Name: shohan
Date: 6/18/2011 3:06:40 AM
Comment:
good job


Title: RegEx
Name: shohan
Date: 6/18/2011 3:06:14 AM
Comment:
good job


Title: Pattern Title
Name: José Dunstan
Date: 6/10/2010 10:33:22 AM
Comment:
Regular Expression successfully validated


Title: Thanks Danny
Name: Sumita Narayanan
Date: 8/8/2007 8:07:54 AM
Comment:
This was the one I was looking for.... too gud...very helpfull


Title: Thanks Danny
Name: Sumita Narayanan
Date: 8/8/2007 8:06:39 AM
Comment:
This was the one I was looking for.... too gud...very helpfull


Title: Many Thanks!
Name: Genera|
Date: 10/7/2005 1:58:46 PM
Comment:
Many Thanks!


Title: Nice one
Name: tola
Date: 8/23/2005 10:44:18 AM
Comment:
You have far too much time on your hands, and I love you.


Title: Spot on!
Name: Alastair
Date: 6/27/2005 11:02:29 AM
Comment:
Exactly what I needed...thanks.


Title: Purrrfect!!
Name: Deepills
Date: 3/16/2005 8:23:12 AM
Comment:
Hey Danny, I rated it earlier, but din't put the comments!Thanks a lot for the quick help offered:).Cheers!!


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