lua-users home
lua-l archive

lpeg: matching end of string

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


The LPeg manual says that -lpeg.P(1) should match the
end of string. But the following always results in 'nil'.
 print(lpeg.match(lpeg.P'foo' - lpeg.P(1), 'foo'))
What am i doing wrong?
Ciao
Andreas

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