Guest User

Untitled

a guest
Mar 5th, 2013
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.19 KB | None | 0 0
  1.  
  2. local ch2esc = {
  3.     ["n"] = "\n";  ["r"] = "";    ["t"] = "\t";
  4.     ["\\"] = "\\"; ["\""] = "\"";
  5. };
  6.  
  7. local function unescape ( s )
  8.     return s:gsub("\\([nrt\"\'\\=])", ch2esc);
  9. end
Advertisement
Add Comment
Please, Sign In to add comment