syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me

Question:
In Lua what about special characters in strings?

I often need to handle special characters in strings.

These characters need a back-slash operator:

http://www.lua.org/pil/2.4.html

\abell
\bback space
\fform feed
\nnewline
\rcarriage return
\thorizontal tab
\vvertical tab
\\backslash
\"double quote
\'single quote
\[left square bracket
\]right square bracket

syntax.us Let the syntax do the talking
Blog Contact Posts Questions Tags Hire Me