]> code.delx.au - gnu-emacs/commitdiff
(Regexps): Say up front that backslashes must be doubled in a Lisp program.
authorEli Zaretskii <eliz@gnu.org>
Thu, 29 Mar 2001 15:52:56 +0000 (15:52 +0000)
committerEli Zaretskii <eliz@gnu.org>
Thu, 29 Mar 2001 15:52:56 +0000 (15:52 +0000)
man/search.texi

index 9727075ebe1bd81daf223503b2a617bbe1340e07..56b5f37710fe3691809ce2e57bc801bf768e2006 100644 (file)
@@ -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