Backslash escapes

Backslash escapes are one of the methods various programming, scripting, and markup languages use to allow the inclusion of characters in text strings that might otherwise be difficult or impossible to use, because they have special syntactic meaning, are not part of the currently-used character set, are difficult to type, or are nonprinting characters that don't show in a display. These were introduced in the C programming language, but some version of them is in use in a number of other languages and formats.

These are the standard C backspace escapes:

Some additions and variations may be used in different systems. Often \e stands for the escape character (ESC, 1B), though this is not one of the official standard C escapes. The newline (\n) might get translated to a system-specific line break sequence such as CR or CR+LF. Various other characters that have syntactic meanings in programming languages or regular-expression parsers, like forward slashes, semicolons, and asterisks, are often prefixed with backslashes when used as literals.

Links

 * Wikipedia article