/proc/findtextEx(Haystack, Needle, Start, End)
Arguments:
Haystack: The string to search through.
Needle: The text to search for, or the /regex to search with.
Start = 1: The byte position in the string to start searching at.
End = 0: The byte position immediately after the last character that should be searched.
Returns:
num: The position in the string of the first match; 0 if no match was found.

If the Needle provided is a string, the comparison occurs case sensitively. For the case insensitive version, see findtext.md.

if(findtext("Foo Bar", "foo"))
    world.log << "This fails!"

See also: