how to translate lua pattern "(.*)and(.*)" with lpeg re ?
[
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: 2018年1月21日 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)