Skip to content

Commit fa6cd6e

Browse files
committed
Correct regex in C<$/> example
Thanks to FROGGS++ for helping to correct the regex.
1 parent b5b80b1 commit fa6cd6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Language/variables.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ can be used.
569569
C<$/> can have named attributes if the L<Regex|regex> had named capture-groups
570570
in it, or if the Regex called out to another Regex.
571571
572-
'I.... see?' ~~ / \w+ <punctuation=-[\w\s]> \s* $<final-word> = [ \w+ . ] /
572+
'I.... see?' ~~ / \w+ $<punctuation>=[ <-[\w\s]>+ ] \s* $<final-word> = [ \w+ . ] /;
573573
say $/<punctuation>; # 「....」
574574
say $/<final-word>; # 「see?」
575575

0 commit comments

Comments
 (0)