When searching for the term, "lua script docs" in the following string:
is there a function I can use so that any characters such as periods, hyphens, or underscores are taken into account during the search?
Or to iterate, if I have a table like this:
and the user enters the search-term, "lua script docs", I'd want to get a positive boolean return on all 3 items in the table.
I've looked into the string.find, string.match and string.gsub functions but can't seem to find what I'm looking for.
Code:
http://www.gammon.com.au/scripts/lua.script.docs/strings.htm
Or to iterate, if I have a table like this:
Code:
http://www.gammon.com.au/scripts/lua.script.docs/strings.htm http://www.gammon.com.au/scripts/lua-script-docs/strings.htm http://www.gammon.com.au/scripts/lua_script_docs/strings.htm
I've looked into the string.find, string.match and string.gsub functions but can't seem to find what I'm looking for.
Comment