lua-users home
lua-l archive

lrexlib : newbie question

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


Hi all,
I'm a newbie with Lua. Installed Lua 5.1.2 on Windows 2k box. I added
also Lrexlib and try a small test:
------------------------------------------------
local rex = require "rex_pcre"
str = 'abc 123'
pat = '(\d+)'
nums = rex.match(str,pat)
print(nums)
-----------------------------------------------
But the result is nil :(
I'm wrong somewhere ?
Thank you in advance,
Q.

AltStyle によって変換されたページ (->オリジナル) /