Author: moritz Date: 2010-05-24 13:01:46 +0200 (Mon, 24 May 2010) New Revision: 30770
Modified: docs/Perl6/Spec/S05-regex.pod Log: [S05] clarify how :x and :nth interact Modified: docs/Perl6/Spec/S05-regex.pod =================================================================== --- docs/Perl6/Spec/S05-regex.pod 2010-05-24 02:42:08 UTC (rev 30769) +++ docs/Perl6/Spec/S05-regex.pod 2010-05-24 11:01:46 UTC (rev 30770) @@ -465,6 +465,12 @@ So are closures: C<:nth({.is_fibonacci})> +If both C<:nth> and C<:x> are present, the matching routine looks for submatches +that are compatiable with C<:nth>. If the number of matches is compatible with +the constraint in C<:x>, the whole match succeeds with the highest possible +number of submatches. The combination of C<:nth> and C<:x> typically only +makes sense if C<:nth> is not a single scalar. + =item * With the new C<:ov> (C<:overlap>) modifier, the current regex will