lpeg: matching end of string
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: lpeg: matching end of string
- From: Andreas Matthias <andreas.matthias@...>
- Date: 2010年10月25日 20:45:07 +0200
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