lua-users home
lua-l archive

[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