# HG changeset patch # User Eli Zaretskii # Date 985881176 0 # Node ID 6dee6cc113a58673b26f4f045b7ba3928ceb8f4e # Parent ac894ffb7b169f737f81f078659ea6cf84873616 (Regexps): Say up front that backslashes must be doubled in a Lisp program. diff -r ac894ffb7b16 -r 6dee6cc113a5 man/search.texi --- a/man/search.texi Thu Mar 29 15:38:09 2001 +0000 +++ b/man/search.texi Thu Mar 29 15:52:56 2001 +0000 @@ -385,7 +385,9 @@ 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