Emacs has an ususual way of escaping special characters in regular expressions, which I keep forgetting, so here's a summary
| Literal | Special | Emacs bare | Emacs escaped |
|---|---|---|---|
* |
\* |
||
| * 0 or more | * |
||
+ |
\+ |
||
| + 1 or more | + |
||
? |
\? |
||
| ? 0 or 1 | ? |
||
( ) |
( ) |
||
| () grouping | \( \) |
||
[ ] |
\[ \] |
||
| [ ] char class | [ ] |
||
{ } |
{ } |
||
| { } repetition | \{ \} |
||
| |
| |
||
| | alternative | \| |