Hi,

Suppose there is a string "var = 123", I want to substitute 123 by 456,
then I have to write like this "s/(var\s+=)\s+\d+/\1 123/". Is there a way
so that I can combine ' ' into the parenthesis as
"s/(var\s+=\s+)\d+/\1456"? I know \1456 is not correct, but how can I
seperate \1 and 456 without using a space? I hope I have made myself understood.
-- 
Zeng Nan           
Simple is Beautiful.
~~~~~~~~~~~~~~~~~~~~
PGP Key:  http://hobbit.homeunix.org

Attachment: pgpYnph63Kr46.pgp
Description: PGP signature



Reply via email to