|
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+(.*)' |