diff options
| author | Stefan Monnier | 2000-03-08 23:26:00 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2000-03-08 23:26:00 +0000 |
| commit | 95cd4c403d8dd85f8371bc92bca328cd690b84d5 (patch) | |
| tree | 444470657ca17450d2a0fbe741b217fd36144489 /man | |
| parent | 505bde11b0fb6f539db1ef0713f19c3c2d86064a (diff) | |
| download | emacs-95cd4c403d8dd85f8371bc92bca328cd690b84d5.tar.gz emacs-95cd4c403d8dd85f8371bc92bca328cd690b84d5.zip | |
*** empty log message ***
Diffstat (limited to 'man')
| -rw-r--r-- | man/search.texi | 22 |
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 | |||
| 432 | as they can, while if you append a @samp{?} after them, it makes them | 432 | as they can, while if you append a @samp{?} after them, it makes them |
| 433 | non-greedy: they will match as little as possible. | 433 | non-greedy: they will match as little as possible. |
| 434 | 434 | ||
| 435 | @item \@{n,m\@} | 435 | @item \@{@var{n},@var{m}\@} |
| 436 | is another postfix operator that specifies an interval of iteration: | 436 | is another postfix operator that specifies an interval of iteration: |
| 437 | the preceding regular expression must match between @samp{n} and | 437 | the 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 |
| 439 | and if @samp{,m} is omitted, then the regular expression must match | 439 | and if @var{,m} is omitted, then the regular expression must match |
| 440 | exactly @samp{n} times. @* | 440 | exactly @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{} ] |
| 447 | is a @dfn{character set}, which begins with @samp{[} and is terminated | 447 | is a @dfn{character set}, which begins with @samp{[} and is terminated |
| @@ -560,7 +560,15 @@ To record a matched substring for future reference. | |||
| 560 | This last application is not a consequence of the idea of a | 560 | This last application is not a consequence of the idea of a |
| 561 | parenthetical grouping; it is a separate feature that is assigned as a | 561 | parenthetical grouping; it is a separate feature that is assigned as a |
| 562 | second meaning to the same @samp{\( @dots{} \)} construct. In practice | 562 | second meaning to the same @samp{\( @dots{} \)} construct. In practice |
| 563 | there is no conflict between the two meanings. | 563 | there is almost no conflict between the two meanings. |
| 564 | |||
| 565 | @item \(?: @dots{} \) | ||
| 566 | is another grouping construct (often called ``shy'') that serves the same | ||
| 567 | first two purposes, but not the third: | ||
| 568 | it cannot be referred to later on by number. This is only useful | ||
| 569 | for mechanically constructed regular expressions where grouping | ||
| 570 | constructs need to be introduced implicitly and hence risk changing the | ||
| 571 | numbering of subsequent groups. | ||
| 564 | 572 | ||
| 565 | @item \@var{d} | 573 | @item \@var{d} |
| 566 | matches the same text that matched the @var{d}th occurrence of a | 574 | matches the same text that matched the @var{d}th occurrence of a |