Escape character: Difference between revisions

From WikiMD's Wellness Encyclopedia

CSV import
 
CSV import
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
* `\\` - Backslash
* `\\` - Backslash
* `\"` - Double quote
* `\"` - Double quote
{{No image}}
__NOINDEX__

Latest revision as of 11:06, 17 March 2025

Character used to indicate that what follows is special



An escape character is a character which invokes an alternative interpretation on subsequent characters in a character sequence. An escape character is a particular case of metacharacter.

Usage[edit]

Escape characters are used in computer programming and data processing to signify that the characters following it should be treated differently. For example, in many programming languages, the backslash (`\`) is used as an escape character. This allows for the inclusion of special characters in strings, such as newline (`\n`), tab (`\t`), or even the backslash itself (`\\`).

Common Escape Characters[edit]

Some of the most common escape characters include:

  • `\n` - Newline
  • `\t` - Tab
  • `\\` - Backslash
  • `\"` - Double quote