in reply to
Leading Zeros
Well with a little help from
kel
I was able to piece this together.
s/(\.|^)0+/$1/g
Moo
Comment on
Re: Leading Zeros
Download
Code
Replies are listed 'Best First'.
Re: Re: Leading Zeros
by
jaymoo
(Novice)
on Feb 22, 2001 at 22:16 UTC
DOH! Well I guess I skimmed this one a little too quick. But the obove regex will work nice if you want to convert back to no leading zeros.
Moo
[reply]
In Section
Seekers of Perl Wisdom