How do I ignore a string’s capitalization?
i want the following code to respond to hello or Hello or HELLO or HelLO
if string.find(string1, "hello") ~= nil then
--print hello
end [import]uid: 59735 topic_id: 17614 reply_id: 317614[/import]
How do I ignore a string’s capitalization?
i want the following code to respond to hello or Hello or HELLO or HelLO
if string.find(string1, "hello") ~= nil then
--print hello
end [import]uid: 59735 topic_id: 17614 reply_id: 317614[/import]
you can do…
string.lower("Change Uppercase to Lower in THIS STRING")
that should make all the uppercase letters in that string lowercase. [import]uid: 69826 topic_id: 17614 reply_id: 67043[/import]
or more specifically :
[code]
if string.find(string.lower(string1), “hello”) ~= nil then
–print hello
end