all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Correct RegExp for Substituting "(word 1)(word 2)(word ...)" by "`(word 1)(word2)(word ...)"'?
@ 2011-03-16  4:50 Peter Heidrich
  2011-03-16 19:24 ` Peter Dyballa
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Heidrich @ 2011-03-16  4:50 UTC (permalink / raw
  To: help-gnu-emacs

Dear Emacs Users,

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

The text is standard ASCII, encoding is iso-latin1.

Does someone have the correct terms for the search and the substitute 
regexp?

Regards,
Peter. 



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Correct RegExp for Substituting "(word 1)(word 2)(word ...)" by "`(word 1)(word2)(word ...)"'?
  2011-03-16  4:50 Correct RegExp for Substituting "(word 1)(word 2)(word ...)" by "`(word 1)(word2)(word ...)"'? Peter Heidrich
@ 2011-03-16 19:24 ` Peter Dyballa
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Dyballa @ 2011-03-16 19:24 UTC (permalink / raw
  To: Peter Heidrich; +Cc: help-gnu-emacs


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)




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-16 19:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-16  4:50 Correct RegExp for Substituting "(word 1)(word 2)(word ...)" by "`(word 1)(word2)(word ...)"'? Peter Heidrich
2011-03-16 19:24 ` Peter Dyballa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.