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

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

Re: Regexp replacement


From: Jim Dai
Subject: Re: Regexp replacement
Date: Fri, 27 Oct 2006 21:16:22 -0400
User-agent: Microsoft-Entourage/11.1.0.040913

Hmm, I missed \( \) and \1 combination in my own try.

How can create a key-binding such as C-c C-r in LaTeX mode? Thanks.
Jim



On 10/27/06 6:45 PM, in article 85iri5nzt0.fsf@lola.goethe.zz, "David
Kastrup" <dak@gnu.org> wrote:

> Jim Dai <jgjimdai_p@yahoo.com> writes:
> 
>> I would like to delete \redtext{long text} with "long text" being kept.
>> I have any instances in a file, with "long text" varying that may include
>> other latex symbols like _ $. (assume there are not any {} pairs inside the
>> text.
>> 
>> How can I use regexp replacement to achieve the desired changes?
> 
> M-x query-replace-regexp RET \\redtext{\([^}]*\)} RET \1 RET



reply via email to

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