in reply to Regex to parse a date
Following the pronciple of KISS
my $s = '2003 % 05 % 1720:55:23'; $s =~ s[(....) % (..) % (..).*][$1-$2-$3]; print $s; 2003-05-17
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regex to parse a date
by TVSET (Chaplain) on May 19, 2003 at 10:43 UTC | |
|
Re: Re: Regex to parse a date
by Anonymous Monk on May 19, 2003 at 12:38 UTC |