On Wed, Nov 16, 2011 at 04:14:57PM +0100, Olof Johansson wrote: > On 2011-11-16 09:57 -0500, Ronald J Kimball wrote: > > That should be s/0*//, otherwise you'll get the wrong result for numbers > > above 2147483647. > > That should be s/^0*//, otherwise you'll get the wrong result for > numbers above 2147483647.
No, you are wrong. s/0*// is sufficient, because /0*/ will always match at the start of the string anyway. Ronald