aboutsummaryrefslogtreecommitdiffstats
path: root/doc/lispref
diff options
context:
space:
mode:
Diffstat (limited to 'doc/lispref')
-rw-r--r--doc/lispref/searching.texi14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 740be2a31ff..0f312915f9e 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -406,13 +406,13 @@ Note also that the usual regexp special characters are not special inside a
406character alternative. A completely different set of characters is 406character alternative. A completely different set of characters is
407special inside character alternatives: @samp{]}, @samp{-} and @samp{^}. 407special inside character alternatives: @samp{]}, @samp{-} and @samp{^}.
408 408
409To include a @samp{]} in a character alternative, you must make it the 409To include a @samp{]} in a character alternative, you must make it the first
410first character. For example, @samp{[]a]} matches @samp{]} or @samp{a}. 410character. For example, @samp{[]a]} matches @samp{]} or @samp{a}. To include
411To include a @samp{-}, write @samp{-} as the first or last character of 411a @samp{-}, write @samp{-} as the last character of the character alternative,
412the character alternative, or put it after a range. Thus, @samp{[]-]} 412tho you can also put it first or after a range. Thus, @samp{[]-]} matches both
413matches both @samp{]} and @samp{-}. (As explained below, you cannot 413@samp{]} and @samp{-}. (As explained below, you cannot use @samp{\]} to
414use @samp{\]} to include a @samp{]} inside a character alternative, 414include a @samp{]} inside a character alternative, since @samp{\} is not
415since @samp{\} is not special there.) 415special there.)
416 416
417To include @samp{^} in a character alternative, put it anywhere but at 417To include @samp{^} in a character alternative, put it anywhere but at
418the beginning. 418the beginning.