Skip to content

Commit f62e860

Browse files
author
Jan-Olof Hendig
committed
Fix a couple of typos
1 parent 5dfae24 commit f62e860

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/regexes.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ Named captures can also be nested using regular capture group syntax:
709709
710710
if 'abc-abc-abc' ~~ / $<string>=( [ $<part>=[abc] ]* % '-' ) / {
711711
say ~$<string>; # OUTPUT: «abc-abc-abc␤»
712-
say ~$<string><part>; # OUTPUT: «[abc, abc, abc]␤»
712+
say ~$<string><part>; # OUTPUT: «abc abc abc␤»
713713
}
714714
715715
Coercing the match object to a hash gives you easy programmatic access to
@@ -795,7 +795,7 @@ By default, substitutions are only done on the first match:
795795
796796
$_ = 'There can be twly two';
797797
s/tw/on/; # replace 'tw' with 'on' once
798-
.say; # OUTPUT: «there can be only two␤»
798+
.say; # OUTPUT: «There can be only two␤»
799799
800800
=head2 Wildcards and character classes
801801

0 commit comments

Comments
 (0)