help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: regex replace


From: rgb
Subject: Re: regex replace
Date: 11 Dec 2006 05:30:56 -0800
User-agent: G2/1.0

Gary Wessle wrote:
> Hi
>
> I need to remove the "//" from the beginning of all the lines in my
> c++ code which contain the string 'n', including the single comma.
> e.g, un-comment all of those lines that qualify. and then also to
> place "//" not including the double quotes at the beginning of all
> lines containing the 'f' string.
>
> this is a bit too much for me to come up with.
>
> thanks

C-M-% ^\(//\)\(.*'n',\)<RET>\2<RET>

C-M-% ^.*'f'<RET>//\0<RET>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]