Skip to content

Commit 760bbc3

Browse files
authored
Including :x adverb (#4115)
1 parent c9cbe0f commit 760bbc3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/Language/regexes.pod6

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2523,6 +2523,13 @@ In this case, one of them exists (1), so it returns True. Observe that we have
25232523
used C<:st>. As said above, it's functionally equivalent, although obviously
25242524
less legible than using C<:nth>, so this last form is advised.
25252525
2526+
=head3 X<Counting|Adverbs,:x>
2527+
2528+
The C<:x> counting adverb makes the expression match many times, like the C<:g>
2529+
adverb, but only up to the limit given by the adverb expression, stopping once the
2530+
specified number of matches has been reached. The value must be a
2531+
L<Numeric|/type/Numeric> or a L<Range|/type/Range>.
2532+
25262533
=head3 X<Continue|Adverbs,:continue;Adverbs,:c>
25272534
25282535
The C<:continue> or short C<:c> adverb takes an argument. The argument is

0 commit comments

Comments
 (0)