Possivelmente assim: //remover todos os /n local result = string.gsub(s, "n", " ") -- remove line breaks //Depois procuras a palavra str = "This is some text containing the word tiger." if string.match(str, "tiger") then print ("The word tiger was found.") else print ("The word tiger was not found.") end