String Escape Codes
-
\n
- Newline
-
\r
- Carriage return
-
\t
- Horizontal TAB
-
\b
- Backspace
-
\f
- Form feed
-
\\
- Backslash
-
\(
- Left parenthesis
-
\)
- Right parenthesis
-
\ddd
- The character code ddd, where ddd is in octal.
In addition to these basic codes, a backslash just before a newline
allows you to break a string across two lines without inserting a
newline into the string. That is, the string:
(This is a \
string \
that has no \
newlines)
is equivalent to the string: (This is a string that has no
newlines)
.