lua-users home
lua-l archive

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


> Totally unrelated but to small for a new thread: Can I match the start of 
> string in LPeg without lpeg.P(function(s, i) return i == 1 and i end)?

(Sorry to take so long to answer...)

The match function in Lpeg only mathes at the start of the string, so
usually you do not know any specific test to know whether you are there.

-- Roberto