[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug in replace-regexp?
From: |
Johan Bockgård |
Subject: |
Re: Possible bug in replace-regexp? |
Date: |
Fri, 23 Nov 2007 00:42:51 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
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