in reply to Pattern Match/Trim Variables.
"MM/DD/YYYY HH:MM:SS.XXX" and remove ".XXX" that's it. This directly translates to perl:
s{^ ( #capture \d{2} #MM / \d{2} #DD / \d{4} #YYYY \s+ \d{2} #HH : \d{2} #MM : \d{2} #SS ) #stop capturing \. \d{3} #XXX $} {$1}x #replace by captured
Have you read perlrequick and perlre?
--http://fruiture.de
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Pattern Match/Trim Variables.
by LostS (Friar) on Feb 17, 2003 at 19:34 UTC |
In Section
Seekers of Perl Wisdom