lua-users home
lua-l archive

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


On 5/10/2011, at 10:27 AM, Petite Abeille wrote:

> Hello,
> 
> Does anyone have a handy function to unquote a string.format %q transformation? I.e. reverse all the quoting performed by %q to revert to the original string, before quoting?


print(loadstring("return "..("%q"):format("here's a string"))())  ?