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][0-9]|3[01])([-./])(0[13578]|10|12)([-./])(\d{4}))|(([0][1-9]|[12][0-9]|30)([-./])(0[469]|11)([-./])(\d{4}))|((0[1-9]|1[0-9]|2[0-8])([-./])(02)([-./])(\d{4}))|((29)(\.|-|\/)(02)([-./])([02468][048]00))|((29)([-./])(02)([-./])([13579][26]00))|((29)([-./])(02)([-./])([0-9][0-9][0][48]))|((29)([-./])(02)([-./])([0-9][0-9][2468][048]))|((29)([-./])(02)([-./])([0-9][0-9][13579][26])))
Description
Jason West (jason.west@mail.state.ky.us) date validator with leap years using a strict dd/mm/yyyy (ITALIAN) format
Matches
29/02/2000 | 31/01/2000 | 30-01-2000
Non-Matches
29/02/2002 | 32/01/2002 | 10/2/2002
Author Rating: The rating for this expression. Alessandro Olivi
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

Title: Very good
Name: Panos
Date: 4/20/2012 6:18:52 AM
Comment:
Very good script, covers a lot of non valid dates cases....


Title: Very good
Name: Panos
Date: 4/20/2012 6:18:22 AM
Comment:
Very good script, covers a lot of non valid dates cases....


Title: Missing ^ and $
Name: Dany
Date: 4/13/2004 3:22:18 PM
Comment:
001/01/20066 is accepted


Title: Good
Name: madman
Date: 3/5/2004 12:43:18 PM
Comment:
Good skript, works fine in VS.2003, good for saving SQL datetime


Title: problem in ur validationexpression
Name: kalai
Date: 2/27/2004 12:18:55 AM
Comment:
hi, its a good piece of validation, but when i give the year as "0000" its not getting validated...pls check it up...if i can sort that out will let u know


Title: adf
Name: adsf
Date: 1/30/2004 5:12:00 PM
Comment:
sdfd


Title: good script
Name: Gayathri
Date: 10/2/2003 2:51:00 AM
Comment:
This is one of the shortest and best validations.Good job.


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