Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if we have date f.e. '2006.10.30'
we can easily check it with
or/\d+\.\d+\.\d+/
etc.. but those are minimal checks, some months have 28..31, and every 4 years 02.28 becomes 02.29/^(([1-9]|1[1,2]]).([1-9]|1[0-9]|2[0-9]|3[0,1]))$/
so my question is "is there any ultimate date check regexp, how would it look like" (i didn't manage to find one)
thanks for your time.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: ultimate date check regexp
by mickeyn (Priest) on Oct 30, 2006 at 09:04 UTC | |
Re: ultimate date check regexp
by davorg (Chancellor) on Oct 30, 2006 at 09:27 UTC | |
Re: ultimate date check regexp
by fenLisesi (Priest) on Oct 30, 2006 at 10:41 UTC | |
Re: ultimate date check regexp
by borisz (Canon) on Oct 30, 2006 at 09:29 UTC | |
by davorg (Chancellor) on Oct 30, 2006 at 09:35 UTC | |
by borisz (Canon) on Oct 30, 2006 at 09:53 UTC | |
Re: ultimate date check regexp
by Anonymous Monk on Oct 30, 2006 at 09:47 UTC | |
by davorg (Chancellor) on Oct 30, 2006 at 09:55 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom