On Fri, Mar 11, 2005 at 01:10:59AM -0800, Stone wrote: > > Is there any chance you'll ever have "var=123"? Your expression > currently requires the spaces. As far as I can tell, all you're doing > is replacing the numbers on the right hand side of the string. So, > how about using this instead: > > s/\d+$/456/ > > It will substitute the last set of digits and doesn't care if you do > or don't have the spaces.
Thanks to all. Now I know how to do it. -- Zeng Nan Simple is Beautiful. ~~~~~~~~~~~~~~~~~~~~ PGP Key: http://hobbit.homeunix.org
pgpEgvNZmQJNW.pgp
Description: PGP signature