diff options
author | Richard M. Stallman <rms@gnu.org> | 2004-03-04 17:25:34 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2004-03-04 17:25:34 +0000 |
commit | 40d0bf851f6530f632d490bf9e08a7f958d4f073 (patch) | |
tree | f20ab0c2c2f54c65fd75279b74884e4b0b4472c9 /man/search.texi | |
parent | 649d1cbe2b7fa41bbff239e27997eb4e7e326266 (diff) | |
download | emacs-40d0bf851f6530f632d490bf9e08a7f958d4f073.tar.gz |
(Regexps): Explain that ^ and $ have their
special meanings only in certain contexts.
Diffstat (limited to 'man/search.texi')
-rw-r--r-- | man/search.texi | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/man/search.texi b/man/search.texi index ef2d5776232..303074dcf0d 100644 --- a/man/search.texi +++ b/man/search.texi @@ -576,10 +576,18 @@ beginning of a line in the text being matched. Otherwise it fails to match anything. Thus, @samp{^foo} matches a @samp{foo} that occurs at the beginning of a line. +For historical compatibility reasons, @samp{^} can be used with this +meaning only at the beginning of the regular expression, or after +@samp{\(} or @samp{\|}. + @item @kbd{$} is similar to @samp{^} but matches only at the end of a line. Thus, @samp{x+$} matches a string of one @samp{x} or more at the end of a line. +For historical compatibility reasons, @samp{$} can be used with this +meaning only at the end of the regular expression, or before @samp{\)} +or @samp{\|}. + @item @kbd{\} has two functions: it quotes the special characters (including @samp{\}), and it introduces additional special constructs. |