[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: unquote?
- From: "Thijs Schreijer" <thijs@...>
- Date: Wed, 5 Oct 2011 00:53:05 +0200
> 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?
Check out the 'unescape_string' function in metalua. See
https://gist.github.com/fab13n/metalua/blob/master/src/compiler/lexer.lua