Skip to content

Commit 3c0da4f

Browse files
committed
Removed whitespace warning from regex example
1 parent 84e80fa commit 3c0da4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/regexes.pod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -788,9 +788,9 @@ match C<'foo'> and not C<'Foo'>. The C<:i> adverb makes matching
788788
case-insensitive:
789789
790790
$_ = 'STAR TREK Into Darkness';
791-
s/Trek Into/TREK\: Into/; # Someone forgot the colon?
791+
s/'Trek Into'/TREK\: Into/; # Someone forgot the colon?
792792
.say; # STAR TREK Into Darkness
793-
s:i/Trek into/TREK\: Into/; # Thereifixedit
793+
s:i/'Trek into'/TREK\: Into/; # Thereifixedit
794794
.say; # STAR TREK: Into Darkness
795795
796796
If you want more in-depth descriptions of what these adverbs are actually

0 commit comments

Comments
 (0)