\ | ( ) [ { ^ $ * + ?
. any character but newline |
^ ,$ start/end of line |
* zero or more occ. of the prec. char. or group |
+ one or more occ. of the prec. char. or group |
? zero or one occ. of prec. char. or group (makes * and + ungreedy) |
[a-z ] range fo chars, [abc] group of chars |
[^... ] anything but range fo chars. |
\ escape character |
\\ backslash |
\b start or end of word |
\e escape |
\B next string not in word |
\< start of word |
\> end of word |
\d digit |
\D non-digit |
\n newline |
\s a whitespace character |
\S a non-whitespace character |
\t tab |
\w any word charcter |
\W any non-word character |
\| multiple patterns |
(...) group
|