Skip to content

Commit 30d16ad

Browse files
Correction of minor errors introduced in recent update
Consistency in discussion order of 'm' and 'rx'; inserted missing word "This"; correction of link to adverb section (link should not only be to regex advers); inserted missing word 'named'.
1 parent 722b41d commit 30d16ad

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/Language/regexes.pod6

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ Perl 6 has special syntax for literal regexes:
1919
rx/abc/; # a Regex object
2020
/abc/; # a Regex object; shorthand version of 'rx/ /' operator
2121
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
2525
former forms allow delimiters other than the slash to be used:
2626
2727
m{abc}; # curly braces as delimiters
@@ -30,8 +30,8 @@ former forms allow delimiters other than the slash to be used:
3030
As may be inferred from the above example, the use of a colon as an alternative
3131
delimiter would clash with the use of adverbs; accordingly, such use of the
3232
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
3535
parentheses are always parsed as a subroutine call. I.e. in C<rx()> the L<call
3636
operator|/language/operators#postcircumfix_(_)> C<()> invokes the subroutine
3737
C<rx>. The form C<rx ( abc )>, however, I<does> define a Regex object.
@@ -267,7 +267,7 @@ L<named regexes|/language/regexes#Subrules>.
267267
As such they are subject to the usual capturing semantics. This means that if
268268
a character class is called with the syntax C«<name>» (i.e. as indicated in
269269
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
271271
resulting L<Match object|/type/Match>. In case just a match and no capture is
272272
desired, the capture may be suppressed through the use of call syntax that
273273
includes a leading dot: C«<.name>».

0 commit comments

Comments
 (0)