From: bojohan+news@dd.chalmers.se (Johan Bockgård)
To: help-gnu-emacs@gnu.org
Subject: Re: Possible bug in replace-regexp?
Date: Fri, 23 Nov 2007 00:42:51 +0100 [thread overview]
Message-ID: <yoijoddlyhhg.fsf@remote1.student.chalmers.se> (raw)
In-Reply-To: mailman.3861.1195603200.18990.help-gnu-emacs@gnu.org
Moira <moira@demetria.de> writes:
> If my search contains a grouped quantor like this "myString\(.*?\)" a
> C-q,C-j newline in the replacement is added *before* the groups
> backreference, even if it's placed behind it.
> Like in this replace: "myString\1[emacs C-q,C-j comes here]".
*? is non-greedy. \1 is the empty string.
--
Johan Bockgård
next prev parent reply other threads:[~2007-11-22 23:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3861.1195603200.18990.help-gnu-emacs@gnu.org>
2007-11-22 22:45 ` Possible bug in replace-regexp? David Reitter
2007-11-22 23:42 ` Johan Bockgård [this message]
2007-11-20 23:59 Moira
2007-11-21 9:47 ` Peter Dyballa
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=yoijoddlyhhg.fsf@remote1.student.chalmers.se \
--to=bojohan+news@dd.chalmers.se \
--cc=help-gnu-emacs@gnu.org \
/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.