Skip to content

Commit e6e9b9d

Browse files
Fixes #2873
1 parent 92289bc commit e6e9b9d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

doc/Language/regexes.pod6

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,16 @@ Examples of word characters:
261261
262262
=end table
263263
264-
Note that the character classes C«<same>», C«<wb>» and C«<ww>» are
265-
so called zero-width assertions, which do not really match a
266-
character.
264+
The predefined character classes in the leftmost column are all of the form
265+
C«<name>», a hint to the fact that they are implemented as built-in L<named
266+
regexes|language/regexes#Subrules>. As such they are subject to the usual
267+
capturing semantics. This means, inter alia, that these classes do not only
268+
match, but also capture, installing a correspondingly named L<named
269+
capture|/language/regexes#Named_captures> in the resulting L<Match
270+
object|/type/Match>.
271+
272+
Note that the character classes C«<same>», C«<wb>» and C«<ww>» are so-called
273+
zero-width assertions, which do not really match any character.
267274
268275
=head2 X«Unicode properties|regex,<:property>»
269276

0 commit comments

Comments
 (0)