I tried indexOf(), findText() and other few methods for finding a string pattern in a text in google app script. None of the above method works.
var str="task is completed";
I'm getting this string from google spreadsheet.
I just want to find whether the above string contains a string "task" .