Searches the string backwards for the specified substring, starting from the specified index, and returns an index to it.
Returns -1 if the substring is not found.
Parameters:
str
search
fromIndex
str.len()-1
is assumed.
indexOf()
You may call this function in a method-like style, e.g.:
str.lastIndexOf(".")