[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LPeg question about substitution captures with group captures
- From: Dirk Laurie <dirk.laurie@...>
- Date: Sat, 8 Dec 2018 13:07:26 +0200
Op Sa. 8 Des. 2018 om 12:37 het Sean Conner <sean@conman.org> geskryf:
> Personally, I prefer LPeg as I find it easier to read than the Lua
> patterns.
There is nothing that forces you to write a Lua pattern as a single
daunting string literal. You can compose it as table.concat{first,
second, third}, defining the components separately. As you would in a
decently written piece of Lpeg code.