lua-users home
lua-l archive

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


I think it is just luck that xpattern work for my previous post.

After reading xpattern.lua a bit, it does NOT do backtracking.
So, previous xpattern work only because it had an 'and' anchor.

-- this will *NOT* work, X'(.*)' consumed everything -> always fail

p1 = X'(.*)' * (X'possibly' + 'likely' + 'definitely') * X'%s+(.*)'