[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: how to translate lua pattern "(.*)and(.*)" with lpeg re ?
- From: albertmcchan <albertmcchan@...>
- Date: Sun, 21 Jan 2018 01:53:08 -0500
my previous post were using lpeg pattern and helper drop3
drop3 is not needed !
lpeg re pattern : "{ g <- . g / &'and' } 'and' {.*}"
lpeg pattern: C({1 * V(1) + #P'and'}) * 'and' * C(P(1)^0)