11-28-2009, 12:47 PM
Wasn't quite sure why I was seeing so many "/n"'s in programs so I looked it up and I found a list of all the backslash characters that can be used in strings and I thought I would share.
ESCAPE
ESCAPE
MEANING
\newline Ignored (continuation)
\\ Backslash (keeps a \)
\' Single quote (keeps ')
\" Double quote (keeps ")
\a Bell
\b Backspace
\f Formfeed
\n Newline (linefeed)
\r Carriage return
\t Horizontal tab
\v Vertical tab
\N{id} Unicode database ID
\uhhhh Unicode 16-bit hex
\Uhhhh... Unicode 32-bit hex
\xhh Hex digits value
\ooo Octal digits value
\0 Null (doesn’t end string)
\other Not an escape (kept)