[...] | Any one character between the brackets. |
[^...] | Any one character not between the brackets. |
. | Any character except newline. Equivalent to [^\n] |
\w | Any word character. Equivalent to [a-zA-Z0-9_] and [[:alnum:]_] |
\W | Any non-word character. Equivalent to [^a-zA-Z0-9_] and [^[:alnum:]_] |
\s | Any whitespace character. Equivalent to [ \t\n\r\f\v] and [[:space:]] |
\S | Any non-whitespace. Equivalent to [^ \t\n\r\f\v] and [^[:space:]] Note: \w != \S |
\d | Any digit. Equivalent to [0-9] and [[:digit:]] |
\D | Any character other than a digit. Equivalent to [^0-9] and [^[:digit:]] |
[\b] | A literal backspace (special case) |
[[:class:]] | class can be one of the following: alnum, alpha, ascii, blank, cntrl, digit, graph, lower, print, punct, space upper, xdigit |