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

then format it back into a string in the original format, and do a string comparison.

Or fix the bug ;) Or since the format is all numbers , easy to screen /\A\d+\z/.

Replies are listed 'Best First'.
Re^4: time validation
by wol (Hermit) on May 19, 2009 at 13:33 UTC
    Don't forget that the string could be the wrong length, so m/^\d{14}$/

    Or fix the bug :-)

    --
    use JAPH;
    print JAPH::asString();