|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Date Validation using just a regexby beable (Friar) |
| on Jul 01, 2004 at 05:08 UTC ( [id://371018]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
|
|
||||||||||||||||||||||||||||