[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Multiple captures with patt/function in LPEG
- From: Coroutines <coroutines@...>
- Date: Fri, 29 Aug 2014 00:09:07 -0700
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