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[13578]|10|12)([-./])(0[1-9]|[12][0-9]|3[01])([-./])(\d{4}))|((0[469]|11)([-./])([0][1-9]|[12][0-9]|30)([-./])(\d{4}))|((02)([-./])(0[1-9]|1[0-9]|2[0-8])([-./])(\d{4}))|((02)(\.|-|\/)(29)([-./])([02468][048]00))|((02)([-./])(29)([-./])([13579][26]00))|((02)([-./])(29)([-./])([0-9][0-9][0][48]))|((02)([-./])(29)([-./])([0-9][0-9][2468][048]))|((02)([-./])(29)([-./])([0-9][0-9][13579][26])))$
Description
This works for all accept 01/01/0000 mainly 0000. can anybody suggest a solution.
Matches
01/01/2001
Non-Matches
01/01/00000
Author Rating: Not yet rated. Func toid
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: What's the rule?
Name: Darren Neimke
Date: 10/15/2003 10:43:47 AM
Comment:
So, what's the rule. Are you saying that you DON'T want it to match: 01/01/0000 but, that 01/01/0001 would be fine?


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