diff options
| author | Stefan Monnier | 2007-06-12 18:40:18 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-06-12 18:40:18 +0000 |
| commit | c69b0314526d0b618be1af27b8b6330065401e61 (patch) | |
| tree | e9adef9dfd0d31c2a84024d760882668049dd8b6 /lispref | |
| parent | 495fa7db39d8b28633d410f994d9c583f407c8d3 (diff) | |
| download | emacs-c69b0314526d0b618be1af27b8b6330065401e61.tar.gz emacs-c69b0314526d0b618be1af27b8b6330065401e61.zip | |
(regex_compile): Remove the `regnum' counter.
Use bufp->re_nsub instead. Add support for \(?N:RE\).
Diffstat (limited to 'lispref')
| -rw-r--r-- | lispref/searching.texi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lispref/searching.texi b/lispref/searching.texi index 10e8c672962..f923a58f112 100644 --- a/lispref/searching.texi +++ b/lispref/searching.texi | |||
| @@ -650,6 +650,15 @@ Shy groups are particularly useful for mechanically-constructed regular | |||
| 650 | expressions because they can be added automatically without altering the | 650 | expressions because they can be added automatically without altering the |
| 651 | numbering of any ordinary, non-shy groups. | 651 | numbering of any ordinary, non-shy groups. |
| 652 | 652 | ||
| 653 | @item \(?@var{num}: @dots{} \) | ||
| 654 | is the @dfn{explicitly numbered group} construct. Normal groups get | ||
| 655 | their number implicitly, based on their position, which can be | ||
| 656 | inconvenient. This construct allows you to force a particular group | ||
| 657 | number. There is no particular restriction on the numbering, | ||
| 658 | e.g.@: you can have several groups with the same number. | ||
| 659 | Implicitly numbered groups always get the smallest integer larger than | ||
| 660 | the one of any previous group. | ||
| 661 | |||
| 653 | @item \@var{digit} | 662 | @item \@var{digit} |
| 654 | matches the same text that matched the @var{digit}th occurrence of a | 663 | matches the same text that matched the @var{digit}th occurrence of a |
| 655 | grouping (@samp{\( @dots{} \)}) construct. | 664 | grouping (@samp{\( @dots{} \)}) construct. |