Support Forums

Full Version: List of string blackslash characters
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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)
BlackhatBlackhatBlackhatBlackhat
Good find, I can't really find a practical use for a lot of them, but I'm sure I will. Big Grin
They are called escaped characters, btw
Is it just me or are the two sides of that 'table' thingy not aligned
(12-03-2009, 03:48 AM)iintens Wrote: [ -> ]Is it just me or are the two sides of that 'table' thingy not aligned

It is, it seems like they aren't because of the space between them. Just highlight the text on one side and drag it to the other and sure enough it is aligned. I didn't know how I should format the "table" so i just aligned one side to the left.