[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: maybe a regex bugs in luajit2
- From: zhiguo zhao <zhaozg@...>
- Date: Sun, 18 Sep 2011 12:07:24 +0800
On windows build it with msvc2008.
Where is wrong?
D:\work\luajit-2.0\bin>\Tools\lua\lua
--------------------------------------------------------------------------
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
> uri='/+/abc/d'
> print(string.find(uri,'/([\-\+])/(.-)/(.*)'))
1 8 + abc d
>
-------------------------------------------------------------------------
D:\work\luajit-2.0\bin>luajit
JIT: ON CMOV SSE2 SSE3 SSE4.1 fold cse dce fwd dse narrow loop abc fuse
> uri='/+/abc/d'
> print(string.find(uri,'/([\-\+])/(.-)/(.*)'))
stdin:1: invalid escape sequence near ''/(['
> quit
>>
^C