# HG changeset patch # User Stefan Monnier # Date 950547857 0 # Node ID 5c14849aee4cbe9a1b4619293618027a8055eba0 # Parent d8bedafef8d5275ee4fcc10f7e1ccfb9cd0a4859 documented \{n,m\} intervals diff -r d8bedafef8d5 -r 5c14849aee4c man/search.texi --- a/man/search.texi Mon Feb 14 17:02:14 2000 +0000 +++ b/man/search.texi Mon Feb 14 17:04:17 2000 +0000 @@ -432,6 +432,17 @@ as they can, while if you append a @samp{?} after them, it makes them non-greedy: they will match as little as possible. +@item \@{n,m\@} +is another postfix operator that specifies an interval of iteration: +the preceding regular expression must match between @samp{n} and +@samp{m} times. If @samp{m} is omitted, then there is no upper bound +and if @samp{,m} is omitted, then the regular expression must match +exactly @samp{n} times. @* +@samp{\@{0,1\@}} is equivalent to @samp{?}. @* +@samp{\@{0,\@}} is equivalent to @samp{*}. @* +@samp{\@{1,\@}} is equivalent to @samp{+}. @* +@samp{\@{n\@}} is equivalent to @samp{\@{n,n\@}}. + @item [ @dots{} ] is a @dfn{character set}, which begins with @samp{[} and is terminated by @samp{]}. In the simplest case, the characters between the two