Special Perl Escape Sequences or
Character Classes

Perl Escape
character
Equivalent
class
Meaning
\w [0-9a-zZ-Z_] Match a "word" character (alpanumeric plus "_")
\W [^\w] Match a non-"word" character
\s [\ \t\r\n\f] Match a whitespace character
\S [^\s] Match a non-whitespace character
\d [0-9] Match a digit character
\D [^\d] Match a non-digit character
\pP   Match P, named property; use \p{Prop} for longer names
\PP [^\pP] Match non-P
\X   Match eXtended Unicode "combining character sequence",
equivalent to C<(?:\PM\pM*)>
\C   Match a single C char (octet) even under utf8
See: "man utf8"