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

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

Re: Correct RegExp for Substituting "(word 1)(word 2)(word ...)" by "`(w


From: Peter Dyballa
Subject: Re: Correct RegExp for Substituting "(word 1)(word 2)(word ...)" by "`(word 1)(word2)(word ...)"'?
Date: Wed, 16 Mar 2011 20:24:25 +0100


Am 16.03.2011 um 05:50 schrieb Peter Heidrich:

I still have not found the right search and replace terms in order to substitute a set of words starting and ending with quotes.

Did you read about greedy and so greedy regular expressions? It's mentioned in the GNU Emacs documentation about regexp's. You need to use the non-greedy form or it would start with the first double-quote in the line and end with its last one.

--
Mit friedvollen Grüßen

  Pete

Wer nichts zu verbergen hat, hat schon alles verloren.
                                (Juli Zeh)




reply via email to

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