laziness, impatience, and hubris | |
PerlMonks |
Re: checking for valid dateby planetscape (Chancellor) |
on Jul 30, 2006 at 13:40 UTC ( [id://564619]=note: print w/replies, xml ) | Need Help?? |
Arguably the Wrong Way(TM) to do it... but it is possible to validate dates using regexes. I mention this not to encourage such (ab)use, but simply as one example (of many) of things that make my jaw hit the floor, followed by: "You can do that?!" So, for curiosity's sake only, I submit the following: You may also wish to have a look at what Regexp::Common can do for you. And if, for some reason, the oftimes pathological regexes illustrated above aren't enough for you, there's also the Regular Expression Library - Dates and Times Category. ;-) HTH,
planetscape
In Section
Seekers of Perl Wisdom
|
|