Welcome to the Monastery | |
PerlMonks |
Re: Date Validation using just a regexby beable (Friar) |
on Jul 01, 2004 at 09:08 UTC ( [id://371018]=note: print w/replies, xml ) | Need Help?? |
Ananda, I think you have set yourself an impossible task. For example, some countries write dates with the month first, some with the day first, and some with the year first. If a date was "01/02/03", how could you possibly work out what it means?
Secondly, why try to do this in a regex, when there are modules which can do it?
CPAN time modules
CPAN date modules
In Section
Seekers of Perl Wisdom
|
|