From: Eli Zaretskii Date: Thu, 29 Mar 2001 15:52:56 +0000 (+0000) Subject: (Regexps): Say up front that backslashes must be doubled in a Lisp program. X-Git-Tag: emacs-pretest-21.0.101~108 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=96e29ebe342e404efe7e2d4516eb40b375e205b0;p=emacs.git (Regexps): Say up front that backslashes must be doubled in a Lisp program. --- diff --git a/man/search.texi b/man/search.texi index 9727075ebe1..56b5f37710f 100644 --- a/man/search.texi +++ b/man/search.texi @@ -385,7 +385,9 @@ character is a simple regular expression which matches that same character and nothing else. The special characters are @samp{$}, @samp{^}, @samp{.}, @samp{*}, @samp{+}, @samp{?}, @samp{[}, @samp{]} and @samp{\}. Any other character appearing in a regular expression is -ordinary, unless a @samp{\} precedes it. +ordinary, unless a @samp{\} precedes it. (When you use regular +expressions in a Lisp program, each @samp{\} must be doubled, see the +example near the end of this section.) For example, @samp{f} is not a special character, so it is ordinary, and therefore @samp{f} is a regular expression that matches the string