Development tools : Global functions : String category : lastIndexOf
  
lastIndexOf
Description
Returns the position of a substring searching from the end, index starting from 0.
Usage
Client side: Y
Server side: Y
Syntax
Integer lastIndexOf(String string, String subString)
Arguments
string
The string to be searched. The argument can be any string, if string is null, -1 will be returned.
subString
The string to search. The argument can be any string, if it is null, -1 will be returned.
Return
The index within this string of the last occurrence of the specified subString. If it does not occur as a subString, -1 is returned.
Examples
lastIndexOf("Hello", "llo")
Returns 2.
lastIndexOf("Hello Hello", "llo")
Returns 8.
See also
String category