lua-users home
lua-l archive

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


On Fri, Aug 29, 2014 at 12:07 AM, Paul K <paul@zerobrane.com> wrote:
>> try this?  lpeg.match(((lpeg.Cp() * lpeg.C(lpeg.R('04'))) / print)^1, "4123")
>
> Indeed; that fixes it. Thank you.

Yay I'm useful :D  So... yeah you were matching those numbers but not
capturing them alongside the position of the match :3

Good luck to ya mate <3