str = "This is some text containing the word tiger."
if string.find(str, "tiger") then
print ("The word tiger was found.")
else
print ("The word tiger was not found.")
end
ourstring = "example"
if string.match(ourstring,"ex") then
print(ourstring.." contains ex!"
end
-- OR
if string.find(ourstring,"ex") then
print(ourstring.." contains ex!"
end