|
> In the definition for field that I use every day, where the value forThe lpeg.Cs substitutes single quotes for double quotes, therefore
> field has this,
>
> lpeg.Cs(((lpeg.P(1) - '"') + lpeg.P'""' / '"')^0)
>
> I have lpeg.C instead of lpeg.Cs. I don't remember why I did this but
> it seems to work either way.
unescaping quotes. Try this example:
local ex1 = '"a ""field"" containing quotes",123,3.14,2.717'