Re: Missing string.find functionality in Lua 5.1
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Missing string.find functionality in Lua 5.1
- From: David Burgess <dburgess@...>
- Date: 2005年9月11日 23:09:50 +1000
> 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.