diff options
| author | Eli Zaretskii | 2001-03-29 15:52:56 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-03-29 15:52:56 +0000 |
| commit | 96e29ebe342e404efe7e2d4516eb40b375e205b0 (patch) | |
| tree | d8f4bdd1534410d411f0ce54af0a98acb30fb116 | |
| parent | aea51abefd008ad14a61979321e6ccfc428c5d28 (diff) | |
| download | emacs-96e29ebe342e404efe7e2d4516eb40b375e205b0.tar.gz emacs-96e29ebe342e404efe7e2d4516eb40b375e205b0.zip | |
(Regexps): Say up front that backslashes must be doubled in a Lisp program.
| -rw-r--r-- | man/search.texi | 4 |
1 files changed, 3 insertions, 1 deletions
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 | |||
| 385 | character and nothing else. The special characters are @samp{$}, | 385 | character and nothing else. The special characters are @samp{$}, |
| 386 | @samp{^}, @samp{.}, @samp{*}, @samp{+}, @samp{?}, @samp{[}, @samp{]} and | 386 | @samp{^}, @samp{.}, @samp{*}, @samp{+}, @samp{?}, @samp{[}, @samp{]} and |
| 387 | @samp{\}. Any other character appearing in a regular expression is | 387 | @samp{\}. Any other character appearing in a regular expression is |
| 388 | ordinary, unless a @samp{\} precedes it. | 388 | ordinary, unless a @samp{\} precedes it. (When you use regular |
| 389 | expressions in a Lisp program, each @samp{\} must be doubled, see the | ||
| 390 | example near the end of this section.) | ||
| 389 | 391 | ||
| 390 | For example, @samp{f} is not a special character, so it is ordinary, and | 392 | For example, @samp{f} is not a special character, so it is ordinary, and |
| 391 | therefore @samp{f} is a regular expression that matches the string | 393 | therefore @samp{f} is a regular expression that matches the string |