matches one, zero, any alphabetic character, and the percentage sign.
The exact meanings of the above classes depend from many things:
-if the C<utf8> pragma is used, the following equivalenced to Unicode
+if the C<utf8> pragma is used, the following equivalences to Unicode
\p{} constructs hold:
alpha IsAlpha
If the C<utf8> pragma is not used but the C<locale> pragma is, the
classes correlate with the isalpha(3) interface (except for `word',
-which is a Perl extension).
+which is a Perl extension, mirroring \w).
The assumedly non-obviously named classes are:
Any control character. Usually characters that don't produce
output as such but instead control the terminal somehow:
for example newline and backspace are control characters.
+ All characters with ord() less than 32 are most often control
+ classified as characters.
=item graph
You can negate the [::] character classes by prefixing the class name
with a '^'. This is a Perl extension. For example:
- ^digit \D \P{IsDigit}
- ^space \S \P{IsSpace}
- ^word \W \P{IsWord}
+ POSIX trad. Perl utf8 Perl
+
+ [:^digit:] \D \P{IsDigit}
+ [:^space:] \S \P{IsSpace}
+ [:^word:] \W \P{IsWord}
The POSIX character classes [.cc.] and [=cc=] are B<not> supported
and trying to use them will cause an error.