Skip to content

Commit

Permalink
Added missing output comment in regex pod
Browse files Browse the repository at this point in the history
  • Loading branch information
jjatria committed Mar 3, 2016
1 parent b4dec1e commit b8837d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/regexes.pod
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ string of non-whitespace characters.
In regexes branches separated by C<|>, the longest match wins, independent of
the lexical ordering in the regexes.
say ('abc' ~~ / a | .b /).Str;
say ('abc' ~~ / a | .b /).Str; # ab
=head1 Anchors
Expand Down Expand Up @@ -630,7 +630,7 @@ the match object as a hash, in other words: C<$/{ 'myname' }> or C<< $/<myname>
Named captures can also be nested using regular capture group syntax:
if 'abc-abc-abc' ~~ / $<string>=( [ $<part>=[abc] ]* % '-' ) / {
say ~$<string> # abc-abc-abc
say ~$<string> # abc-abc-abc
say ~$<string><part> # [abc, abc, abc]
}
Expand Down

0 comments on commit b8837d2

Please sign in to comment.