Following the pronciple of KISS
my $s = '2003 % 05 % 1720:55:23'; $s =~ s[(....) % (..) % (..).*][$1-$2-$3]; print $s; 2003-05-17
In reply to Re: Regex to parse a date
by BrowserUk
in thread Regex to parse a date
by MD
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |