in reply to Reg expression on day

Here's another way to do it, and it works for leading zeros on month and day.
s|0(\d)/|$1/|g;

Replies are listed 'Best First'.
Re: Re: Reg expression on day
by Roy Johnson (Monsignor) on Dec 23, 2003 at 18:43 UTC
    Or more simply: s!\b0!!g.

    The PerlMonk tr/// Advocate
Re: Re: Reg expression on day
by Anonymous Monk on Dec 23, 2003 at 19:07 UTC
    Again, thanks for all the input!