print(string.match("oi\ntchau\nhi\nbye", "hi")) print(string.find("oi\ntchau\nhi\nbye", "hi")) --http://pt.stackoverflow.com/q/31590/101