Skip to content

Commit 0a33561

Browse files
author
Jan-Olof Hendig
committed
Added example to .Str
1 parent 0602581 commit 0a33561

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc/Type/Match.pod6

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,15 @@ Alias for L<#method made>.
4141
4242
=head2 method Str
4343
44+
Defined as:
45+
46+
method Str(Match:D:) returns Str:D
47+
4448
Returns the matched text.
4549
50+
"abc123def" ~~ /\d+/;
51+
say $/.Str; # 123
52+
4653
=head2 method caps
4754
4855
Returns a list of pairs, with the index or submatch name as key and

0 commit comments

Comments
 (0)