aboutsummaryrefslogtreecommitdiffstats
path: root/man
diff options
context:
space:
mode:
authorStefan Monnier2000-03-08 23:26:00 +0000
committerStefan Monnier2000-03-08 23:26:00 +0000
commit95cd4c403d8dd85f8371bc92bca328cd690b84d5 (patch)
tree444470657ca17450d2a0fbe741b217fd36144489 /man
parent505bde11b0fb6f539db1ef0713f19c3c2d86064a (diff)
downloademacs-95cd4c403d8dd85f8371bc92bca328cd690b84d5.tar.gz
emacs-95cd4c403d8dd85f8371bc92bca328cd690b84d5.zip
*** empty log message ***
Diffstat (limited to 'man')
-rw-r--r--man/search.texi22
1 files changed, 15 insertions, 7 deletions
diff --git a/man/search.texi b/man/search.texi
index de6cd92849e..96f984b053c 100644
--- a/man/search.texi
+++ b/man/search.texi
@@ -432,16 +432,16 @@ are non-greedy variants of the operators above. The normal operators
432as they can, while if you append a @samp{?} after them, it makes them 432as they can, while if you append a @samp{?} after them, it makes them
433non-greedy: they will match as little as possible. 433non-greedy: they will match as little as possible.
434 434
435@item \@{n,m\@} 435@item \@{@var{n},@var{m}\@}
436is another postfix operator that specifies an interval of iteration: 436is another postfix operator that specifies an interval of iteration:
437the preceding regular expression must match between @samp{n} and 437the preceding regular expression must match between @var{n} and
438@samp{m} times. If @samp{m} is omitted, then there is no upper bound 438@var{m} times. If @var{m} is omitted, then there is no upper bound
439and if @samp{,m} is omitted, then the regular expression must match 439and if @var{,m} is omitted, then the regular expression must match
440exactly @samp{n} times. @* 440exactly @var{n} times. @*
441@samp{\@{0,1\@}} is equivalent to @samp{?}. @* 441@samp{\@{0,1\@}} is equivalent to @samp{?}. @*
442@samp{\@{0,\@}} is equivalent to @samp{*}. @* 442@samp{\@{0,\@}} is equivalent to @samp{*}. @*
443@samp{\@{1,\@}} is equivalent to @samp{+}. @* 443@samp{\@{1,\@}} is equivalent to @samp{+}. @*
444@samp{\@{n\@}} is equivalent to @samp{\@{n,n\@}}. 444@samp{\@{@var{n}\@}} is equivalent to @samp{\@{@var{n},@var{n}\@}}.
445 445
446@item [ @dots{} ] 446@item [ @dots{} ]
447is a @dfn{character set}, which begins with @samp{[} and is terminated 447is a @dfn{character set}, which begins with @samp{[} and is terminated
@@ -560,7 +560,15 @@ To record a matched substring for future reference.
560This last application is not a consequence of the idea of a 560This last application is not a consequence of the idea of a
561parenthetical grouping; it is a separate feature that is assigned as a 561parenthetical grouping; it is a separate feature that is assigned as a
562second meaning to the same @samp{\( @dots{} \)} construct. In practice 562second meaning to the same @samp{\( @dots{} \)} construct. In practice
563there is no conflict between the two meanings. 563there is almost no conflict between the two meanings.
564
565@item \(?: @dots{} \)
566is another grouping construct (often called ``shy'') that serves the same
567first two purposes, but not the third:
568it cannot be referred to later on by number. This is only useful
569for mechanically constructed regular expressions where grouping
570constructs need to be introduced implicitly and hence risk changing the
571numbering of subsequent groups.
564 572
565@item \@var{d} 573@item \@var{d}
566matches the same text that matched the @var{d}th occurrence of a 574matches the same text that matched the @var{d}th occurrence of a