[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/man/search.texi
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] Changes to emacs/man/search.texi |
Date: |
Wed, 12 Apr 2006 13:39:58 +0000 |
Index: emacs/man/search.texi
diff -u emacs/man/search.texi:1.74 emacs/man/search.texi:1.75
--- emacs/man/search.texi:1.74 Sat Mar 11 21:18:15 2006
+++ emacs/man/search.texi Wed Apr 12 13:39:58 2006
@@ -750,8 +750,9 @@
the numbering of the groups that are meant to be referred to.
@item address@hidden
address@hidden back reference, in regexp
matches the same text that matched the @var{d}th occurrence of a
address@hidden( @dots{} \)} construct.
address@hidden( @dots{} \)} construct (a.k.a.@: @dfn{back reference}).
After the end of a @samp{\( @dots{} \)} construct, the matcher remembers
the beginning and end of the text matched by that construct. Then,
@@ -1002,15 +1003,16 @@
Replace every match for @var{regexp} with @var{newstring}.
@end table
address@hidden back reference, in regexp replacement
In @code{replace-regexp}, the @var{newstring} need not be constant:
it can refer to all or part of what is matched by the @var{regexp}.
@samp{\&} in @var{newstring} stands for the entire match being
replaced. @address@hidden in @var{newstring}, where @var{d} is a
digit, stands for whatever matched the @var{d}th parenthesized
-grouping in @var{regexp}. @samp{\#} refers to the count of
-replacements already made in this command, as a decimal number. In
-the first replacement, @samp{\#} stands for @samp{0}; in the second,
-for @samp{1}; and so on. For example,
+grouping in @var{regexp} (a.k.a.@: ``back reference''). @samp{\#}
+refers to the count of replacements already made in this command, as a
+decimal number. In the first replacement, @samp{\#} stands for
address@hidden; in the second, for @samp{1}; and so on. For example,
@example
M-x replace-regexp @key{RET} c[ad]+r @key{RET} \&-safe @key{RET}
- [Emacs-diffs] Changes to emacs/man/search.texi,
Eli Zaretskii <=