summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2000-02-14 17:04:17 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2000-02-14 17:04:17 +0000
commit8a44227ac5dcf4b1786f2459cd1107e3342436f8 (patch)
tree13eff503bc15394dd63790d718f3596a4bdbe2e0 /man
parentd7f89643a49a82f29a4f98002e94fc89ad0eb3d8 (diff)
downloademacs-8a44227ac5dcf4b1786f2459cd1107e3342436f8.tar.gz
documented \{n,m\} intervals
Diffstat (limited to 'man')
-rw-r--r--man/search.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/man/search.texi b/man/search.texi
index 0b903701e97..de6cd92849e 100644
--- a/man/search.texi
+++ b/man/search.texi
@@ -432,6 +432,17 @@ are non-greedy variants of the operators above. The normal operators
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