lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Sat, Jun 5, 2010 at 3:18 AM, Jonathan Castello <twisolar@gmail.com> wrote:
> ----
> local input = [["line1"\nline2]]
> input = input:gsub([["]], [[\"]])
> local output = loadstring("return \"" .. input .. "\"")()
> ----

This one fails if the input contains a backslash followed by a double quote.

-Ricardo