in reply to Re^2: time validation
in thread time validation

>perl -wMstrict -le "my $s = '20090527051000'; my @matches = $s =~ m{ \A \d{4} | \d{2} }xmsg; print qq{@matches}; " 2009 05 27 05 10 00

Replies are listed 'Best First'.
Re^4: time validation
by vnitinv (Initiate) on May 20, 2009 at 07:14 UTC
    even if we give $s = '20090230051000'; o/p is 2009 02 30 05 10 00 I am looking for validation of dates. As you can see its displaying 30th feb, which is not right.