|
On Sun, Sep 18, 2011 at 6:07 AM, zhiguo zhao <zhaozg@gmail.com> wrote:You should use % not \ - Lua string patterns are not regexes although
>> print(string.find(uri,'/([\-\+])/(.-)/(.*)'))
> stdin:1: invalid escape sequence near ''/(['
they are similar.
LuaJIT is more strict than Lua 5.1, so it will catch the illegal escape.
steve d.