lua-users home
lua-l archive

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


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
LuaJIT 2.0.0-beta8 -- Copyright (C) 2005-2011 Mike Pall. http://luajit.org/
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