The Hacker's Language in Action: #3 Strings
Strings in Lua are sequences of bytes... Lua is eight-bit clean and its strings can contain bytes with any numeric code, including embedded zeros.
Roberto Ierusalimschy.
Basics: a change, length operator and concatenation operator
Escape sequences in Lua
C-like Escape Sequence | Character |
---|---|
\a | bell |
\b | backspace |
\f | form feed |
\n | newline |
\r | carriage return |
\t | horizontal tab |
\v | vertical tab |
\\ | backslash |
\" | double quote |
\' | single quote |
Corecions
The String Library
Format and More:
Unicode
- Roberto Ierusalimschy, Programming in Lua, Fourth Edition.
- lua.org
Previous post
About Hacking, Is Lua better that Python?
Maybe the response is in this post about hackers