October 2017
Intermediate to advanced
440 pages
11h 47m
English
A number of shorthand character classes are available. The following table shows each of these:
|
Shorthand |
Description |
Character class |
|
\d |
Digit character |
[0-9] |
|
\s |
White space (space, tab, carriage return, new line, and form feed) |
[ \t\r\n\f] |
|
\w |
Word character |
[A-Za-z0-9_] |
Each of these shorthand classes can be negated by capitalizing the letter. [^0-9] may be represented using \D, \S for any character except whitespace, and \W for any character except a word character.
Read now
Unlock full access