string.find

Syntax

i := string.find(source,sval)

Returns the index of the first instance of string sval in string source. Returns 0 if no match was found.

Returns:

i - The index of the first instance of string sval, or 0.

Arguments:

source - the string to search sval - the value to search for