This escape sequences reference lists backslash escape codes used in strings across most programming languages (C, JavaScript, Python, Java, PHP) — newline, tab, quotes and unicode.
| Sequence | Meaning |
|---|---|
| \n | Newline (line feed) |
| \r | Carriage return |
| \t | Horizontal tab |
| \v | Vertical tab |
| \b | Backspace |
| \f | Form feed |
| \0 | Null character |
| \\ | Backslash |
| \' | Single quote |
| \" | Double quote |
| \uXXXX | Unicode code point (4 hex) |
| \xHH | Byte in hex |
| \nnn | Byte in octal |