$lastIndexOf

Returns the index of the last occurence of the specified substring in the given string.
Syntax
    $lastIndexOf{string}{substring}{end_index}
DocumentationReturns the index of the last occurence of the specified substring in the given string:

    Parameters:
      string, the string
      substring, the substring
      end_index, a optional parameter to specify an offset of the string to stop searching at; defaults to the length of the string.
    Returns:
      the index of the last occurence of the substring in the string or -1 if no occurence at all.
Examples
Example 1
    $lastIndexOf{SITEFORUM}{F}{15}

    Result:
    position of the last occurence of character "F" between the length of "0" to "15": 4
Example 2
    $lastIndexOf{SITEFORUM}{S}{1}

    Result:
    position of the last occurence of character "S" between the length of "0" to "1": 0
Example 3
    $lastIndexOf{SITEFORUM}{Y}{13}

    Result:
    position of the last occurence of character "Y" between the length of "0" to "13": -1 (unmatched)
GroupString
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters 3