all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: Peter Heidrich <peter.heidrich@t-online.de>
Cc: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <CF90A258-BC22-4BA8-99B6-B1E35208F4AC@Web.DE> (raw)
In-Reply-To: <ilpfht$b05$01$1@news.t-online.com>


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	other threads:[~2011-03-16 19:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CF90A258-BC22-4BA8-99B6-B1E35208F4AC@Web.DE \
    --to=peter_dyballa@web.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=peter.heidrich@t-online.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.