Skip to content

Commit 061bdcc

Browse files
committed
Merge pull request #546 from molecules/patch-2
Fixed comment, minor wording edit
2 parents 0f205bd + ee9ffbf commit 061bdcc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/Language/regexes.pod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -798,15 +798,15 @@ common modifiers that you will use are probably C<:g> and C<:i>.
798798
799799
Ordinarily substitutions are only made once in a given string, but adding the
800800
C<:g> modifier overrides that behavior, so that replacements are made
801-
everywhere possible. Substitutions will never overlap, so for instance:
801+
everywhere possible. Substitutions are non-recursive, so for instance:
802802
803803
$_ = q{I can say "banana" but I don't know when to stop};
804-
s:g/na/nana,/; # Substitute 'nana' for 'na'
805-
.say; # ... "banana,nana,"
804+
s:g/na/nana,/; # Substitute 'nana,' for 'na'
805+
.say; # I can say "banana,nana," but I don't ...
806806
807807
Even though the substitution doubled the number of C<na>'s in the string, the
808808
substitution only took place twice. Which is to say the substitution only
809-
applies to the original string, the targeted string does not count.
809+
applies to the original string; the targeted string does not count.
810810
811811
=item Insensitive adverb C<:i>
812812

0 commit comments

Comments
 (0)