Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Reg expression on day

by boo_radley (Parson)
on Dec 23, 2003 at 18:29 UTC ( [id://316676] : note . print w/replies, xml ) Need Help??


in reply to Re: Reg expression on day
in thread Reg expression on day

you can replace
$date =~ s!0?(\d+)/0?(\d+)!$1/$2!;
with
$date =~ s!0?(\d+/)!$1!g;
for month and day.