@@ -19,9 +19,9 @@ Perl 6 has special syntax for literal regexes:
19
19
rx/abc/; # a Regex object
20
20
/abc/; # a Regex object; shorthand version of 'rx/ /' operator
21
21
22
- One difference between the C < rx / /> and C < m / /> forms on the one hand, and the
23
- C < / / > form on the other, is that C < rx > and C < m > may be followed by
24
- L < adverbs|/language/regexes#Regex_adverbs > . Another difference is that the
22
+ One difference between the C < m / /> and C < rx / /> forms on the one hand, and the
23
+ C < / / > form on the other, is that C < m > and C < rx > may be followed by
24
+ L < adverbs|/language/regexes#Adverbs > . Another difference is that the
25
25
former forms allow delimiters other than the slash to be used:
26
26
27
27
m{abc}; # curly braces as delimiters
@@ -30,8 +30,8 @@ former forms allow delimiters other than the slash to be used:
30
30
As may be inferred from the above example, the use of a colon as an alternative
31
31
delimiter would clash with the use of adverbs; accordingly, such use of the
32
32
colon is forbidden. Similarly, parentheses cannot be used as alternative regex
33
- delimiters, at least not without a space between the C < rx > or C < m > and the
34
- opening delimiter. is because identifiers that are immediately followed by
33
+ delimiters, at least not without a space between C < m > or C < rx > and the
34
+ opening delimiter. This is because identifiers that are immediately followed by
35
35
parentheses are always parsed as a subroutine call. I.e. in C < rx() > the L < call
36
36
operator|/language/operators#postcircumfix_(_) > C < () > invokes the subroutine
37
37
C < rx > . The form C < rx ( abc ) > , however, I < does > define a Regex object.
@@ -267,7 +267,7 @@ L<named regexes|/language/regexes#Subrules>.
267
267
As such they are subject to the usual capturing semantics. This means that if
268
268
a character class is called with the syntax C « <name> » (i.e. as indicated in
269
269
the leftmost column), it will not only match, but also capture, installing a
270
- correspondingly L < named capture|/language/regexes#Named_captures > in the
270
+ correspondingly named L < ' named capture' |/language/regexes#Named_captures> in the
271
271
resulting L < Match object|/type/Match > . In case just a match and no capture is
272
272
desired, the capture may be suppressed through the use of call syntax that
273
273
includes a leading dot: C « <.name> » .
0 commit comments