diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-10-30 15:20:24 -0600 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-10-31 12:21:05 -0700 |
commit | d35dd6c678badc24d545f8b7b7a3ebdf0fb0b355 (patch) | |
tree | 1c403ccacc67a1338697eb9b483d81b31273cf34 /pod/perlrebackslash.pod | |
parent | cbc24f92709e23449028ec3036bda16c0af294fb (diff) | |
download | perl-d35dd6c678badc24d545f8b7b7a3ebdf0fb0b355.tar.gz |
DOCs: Clarify that \w matches marks and \Pc
The previous documentation really didn't specify what \w is. It matches
the underscore, but also all other connector punctuation, plus any
marks, such as diacritical accents that occur within a word.
Diffstat (limited to 'pod/perlrebackslash.pod')
-rw-r--r-- | pod/perlrebackslash.pod | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlrebackslash.pod b/pod/perlrebackslash.pod index b75c1e4fed..642acd6730 100644 --- a/pod/perlrebackslash.pod +++ b/pod/perlrebackslash.pod @@ -359,9 +359,10 @@ the character classes are written as a backslash sequence. We will briefly discuss those here; full details of character classes can be found in L<perlrecharclass>. -C<\w> is a character class that matches any single I<word> character (letters, -digits, underscore). C<\d> is a character class that matches any decimal digit, -while the character class C<\s> matches any whitespace character. +C<\w> is a character class that matches any single I<word> character +(letters, digits, Unicode marks, and connector punctuation (like the +underscore)). C<\d> is a character class that matches any decimal +digit, while the character class C<\s> matches any whitespace character. New in perl 5.10.0 are the classes C<\h> and C<\v> which match horizontal and vertical whitespace characters. |