Skip to content

Commit dcaebf0

Browse files
committed
Extend explaination of nesting capture markers.
1 parent 550ce55 commit dcaebf0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Language/regexes.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,8 @@ C<\K>.
978978
say 'abc' ~~ / <(a <( b )> c)>/; # OUTPUT: «「bc」␤»
979979
980980
As the example above, you can see C«<(» sets the start point and C«)>» sets the
981-
endpoint. They are actually independent.
981+
endpoint; since they are actually independent each other, the inner-most start point
982+
wins (the one attache to C<b>) and the outer-most end wins (the one attached to C<c>).
982983
983984
=head1 Substitution
984985

0 commit comments

Comments
 (0)