summaryrefslogtreecommitdiff
path: root/man/search.texi
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2000-01-04 12:01:26 +0000
committerEli Zaretskii <eliz@gnu.org>2000-01-04 12:01:26 +0000
commitf1a88ed9b62efde88483b1dfa384c7ca5322861f (patch)
tree2ba41f5bbe5bed02a357d7ce2bbd2bd050f232f5 /man/search.texi
parent42608ba81deccbfb4ec00736627f21a909790cc4 (diff)
downloademacs-f1a88ed9b62efde88483b1dfa384c7ca5322861f.tar.gz
Improve markup for the description of non-greedy operators.
Add an index entry.
Diffstat (limited to 'man/search.texi')
-rw-r--r--man/search.texi7
1 files changed, 4 insertions, 3 deletions
diff --git a/man/search.texi b/man/search.texi
index a4f4d87daba..d4253ce08ca 100644
--- a/man/search.texi
+++ b/man/search.texi
@@ -408,10 +408,11 @@ preceding expression either once or not at all. For example,
@samp{ca?r} matches @samp{car} or @samp{cr}; nothing else.
@item *?, +?, ??
+@cindex non-greedy regexp matching
are non-greedy variants of the operators above. The normal operators
-@samp{*, +, ?} are greedy in that they match as much as they can,
-while if you prepend a @samp{?} after them, it makes them non-greedy
-in that they will match as little as possible.
+@samp{*}, @samp{+}, @samp{?} are @dfn{greedy} in that they match as much
+as they can, while if you append a @samp{?} after them, it makes them
+non-greedy: they will match as little as possible.
@item [ @dots{} ]
is a @dfn{character set}, which begins with @samp{[} and is terminated