From 2 sources
this is supposed to happen when you issue this command. Ie - gives beginning and ending.
> = string.find(“Hello Lua user”, “Lua”)
7 9
of course that command does not work as is.
So, I tried
v=string.find(“Hello Lua user”, “Lua”)
print(v)
and all I get is 7
If what they say is true, how do I get the 9?
Similarly
string.find(“hello Lua user”, “l+”)
should return 3 and 4 but all I get is 3.
How is this stored so I can get the 2nd value or possible other values??
Last question - in those sources they mentioned the output but did not say how it was stored, shouldn’t that have been included? or is that some basic thing I missed?
Thanks!
[import]uid: 159663 topic_id: 28149 reply_id: 328149[/import]