comparison lispref/searching.texi @ 81378:3e8cb1480830

(explicitly numbered group): Precise the behavior.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 13 Jun 2007 17:49:14 +0000
parents 465e2d55267d
children 3619e7770f2e
comparison
equal deleted inserted replaced
81377:38538b82a02b 81378:3e8cb1480830
653 @item \(?@var{num}: @dots{} \) 653 @item \(?@var{num}: @dots{} \)
654 is the @dfn{explicitly numbered group} construct. Normal groups get 654 is the @dfn{explicitly numbered group} construct. Normal groups get
655 their number implicitly, based on their position, which can be 655 their number implicitly, based on their position, which can be
656 inconvenient. This construct allows you to force a particular group 656 inconvenient. This construct allows you to force a particular group
657 number. There is no particular restriction on the numbering, 657 number. There is no particular restriction on the numbering,
658 e.g.@: you can have several groups with the same number. 658 e.g.@: you can have several groups with the same number in which case
659 the last one to match (i.e.@: the rightmost match) will win.
659 Implicitly numbered groups always get the smallest integer larger than 660 Implicitly numbered groups always get the smallest integer larger than
660 the one of any previous group. 661 the one of any previous group.
661 662
662 @item \@var{digit} 663 @item \@var{digit}
663 matches the same text that matched the @var{digit}th occurrence of a 664 matches the same text that matched the @var{digit}th occurrence of a