| \ | Quote the next metacharacter |
| ^ | Match the beginning of the line |
| . | Match any character (except newline) |
| $ | Match the end of the line |
| | | Alternation |
| () | Grouping |
| [] | Character class |
| * | Match 0 or more times |
| + | Match 1 or more times |
| ? | Match 1 or 0 times |
| {n} | Match exactly n times |
| {n,} | Match at least n times |
| {n,m} | Match at least n but not more than m times |
| \w | Match a "word" character (alphanumeric plus "_") |
| \W | Match a non-word character |
| \s | Match a whitespace character |
| \S | Match a non-whitespace character |
| \d | Match a digit character |
| \D | Match a non-digit character |
| Adam Lorentzon <adam.lorentzon@home.se> |