lua-users home
lua-l archive

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


On Thu, Oct 24, 2013 at 2:21 AM, Patrick Donnelly <batrick@batbytes.com> wrote:
> Cb matches the empty string, not the literal value of the capture (from your
> original code). You need to use matchtime captures to solve your problem.
> See the Lua longstring example in the lpeg docs.

I saw that, after puzzling this out. Unfortunately, you can't get the
fourth argument because field is nested.

It is "harder than it looks" and I'm sure there is a way. It's not
trivial, however.

Patrick: can you show a solution that works?

-Andrew