Extended Syntax
Ranges
- Any character within [] (e.g. [abc])
- Any character not within [] (e.g. [^abc])
Predefined ranges
- \d Matches any decimal digit; this is equivalent
to the set [0-9].
- \D Matches any non-digit character; equivalent
to the set [^0-9].
- \s Matches any whitespace character; this is equivalent
to the set [\t\n\r\f\v].
- \S Matches any non-whitespace character; this is equivalent
to the set [^ \t\n\r\f\v].
One or more closure + (e.g. a+)