On Sat, 2 Feb 2002 12:35:13 -0800 , Pradeep Sethi wrote:

>and I want to use regexp , without using sprinf.

!?!?!!

WTF is wrong with sprintf()? It's a proper tool for this job. Next
you'll want to replace "13.57831" by "13.58" without using sprintf().
Which is doing things the hard way.

>Also want to mention, I liked :
>
>s/\b\d\b/0$&/g;

Then at least, use

        s/\b(\d)\b/0$1/g;

or otherwise, your performance for all other regexes in your entire
program will suffer.

-- 
        Bart.

Reply via email to