PERL Regular Expression Character Class

PERL Regular Expression Character Class

\d A digit, same as [0-9].

\D A non-digit.

\w A word character (alphanumeric) same as [a-zA-Z_0-9]

\W A non-word character

\s A whitespace character, same as [ \t\n\r\f ]

\S A non-whitespace character

Previous slide Next slide Back to the first slide View Graphic Version