Glossary Development

Escape sequence

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:

AdSense Placeholder
Slot: header_reference_page

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 \..

Try these tools

See also

  • Glossary Regular expression
    A regular expression (regex) is a pattern written in a compact syntax that describes a set of strings, used to search.
  • Glossary SQL injection
    SQL injection is an attack in which input is crafted so that part of it is executed as database commands.
  • Glossary HTML entity
    An HTML entity is a code such as `&` or `©` that stands for a character that is reserved in HTML or hard to type.
AdSense Placeholder
Slot: footer_leaderboard