lua-users home
lua-l archive

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


> But may be your Lua 5.1 binaries were compiled with the option
> LUA_COMPAT_FIND turned on?
Yes. Sorry, I missed that. I was using luaconf.h defaults.

I think that that the intention of the documentation is to convey the
idea that string.match (unlike string.find) will capture the match
string even if you do not provide a "()" capture.

> =string.match("abcdefg",".[bc]+")
abc


Time for me to go read the code.

David B.