From 96e29ebe342e404efe7e2d4516eb40b375e205b0 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 29 Mar 2001 15:52:56 +0000 Subject: [PATCH] (Regexps): Say up front that backslashes must be doubled in a Lisp program. --- man/search.texi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2