lua-users home
lua-l archive

[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)