File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
7
7
class Match is Capture is Cool does NQPMatchRole {}
8
8
9
- C < Match > objects are the result of a successful regex match, this does include
9
+ C < Match > objects are the result of a successful regex match, including
10
10
any zero-width match. They store a reference to the original string (C < .orig > ),
11
11
positional and named captures, the positions of the start and end of the match
12
12
in the original string, and a payload referred to as I < AST > (abstract syntax
@@ -21,7 +21,8 @@ expression, as shown here:
21
21
'abc' ~~ /.$${ $c = $¢ }/;
22
22
say $c; # OUTPUT: «「c」»
23
23
24
- In this case, we are running the code among curly braces when the match occurs,
24
+ In this example we are running the code among curly braces when the match
25
+ occurs,
25
26
in this case the last letter in the string (actually, the last, indicated by the
26
27
double C < $ > , character); C < $c > gets the value of the cursor C < $¢ > , which
27
28
contains the C < Match > ; when used with C < say > , the C < Match > is stringified by
You can’t perform that action at this time.
0 commit comments