lua-users home
lua-l archive

how to translate lua pattern "(.*)and(.*)" with lpeg re ?

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


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)

AltStyle によって変換されたページ (->オリジナル) /