From: Eli Zaretskii Date: Tue, 4 Jan 2000 12:01:26 +0000 (+0000) Subject: Improve markup for the description of non-greedy operators. X-Git-Tag: emacs-pretest-21.0.90~5514 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f1a88ed9b62efde88483b1dfa384c7ca5322861f;p=emacs.git Improve markup for the description of non-greedy operators. Add an index entry. --- 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