JSON escape sequences
| Sequence | Character |
|---|---|
\" | Double quote |
\\ | Backslash |
\n | Newline (LF) |
\r | Carriage return |
\t | Tab |
\b \f | Backspace, form feed |
\u00e9 | Any UTF-16 code unit (é) |
Regex escaping
Characters . * + ? ^ $ { } ( ) | [ ] \ / have special meaning in a regex. Escaping them lets you search for literal text such as a file name report(1).pdf.
Shell escaping
Inside single quotes nothing is special except the single quote itself, which is written as '\'' (close, escaped quote, reopen).