In more detail
\n is a newline, \t a tab, \" a quote and \\ a backslash. Escaping rules differ by language: JSON writes He said "hi" as He said \"hi\", SQL doubles a single quote (O''Brien) and a regex escapes . as \..
An escape sequence is a backslash followed by a character that stands for something that cannot be typed directly in a string, such as a newline or a quotation mark.
Last reviewed:
\n is a newline, \t a tab, \" a quote and \\ a backslash. Escaping rules differ by language: JSON writes He said "hi" as He said \"hi\", SQL doubles a single quote (O''Brien) and a regex escapes . as \..