changeset 37069:6dee6cc113a5

(Regexps): Say up front that backslashes must be doubled in a Lisp program.
author Eli Zaretskii <eliz@gnu.org>
date Thu, 29 Mar 2001 15:52:56 +0000
parents ac894ffb7b16
children 838adca2d2fd
files man/search.texi
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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