S > String.lastIndexOf |
String.lastIndexOf
string, string.lastindexof, lastindexof, last index of
Availability
Flash Player 5.
Usage
myString.lastIndexOf(substring, [startIndex])
Parameters
substring An integer or string specifying the string to be searched for.
startIndex An integer specifying the starting point to search for substring. This parameter is optional.
Returns
The position of the last occurrence of the specified substring, or -1.
Description
Method; searches the string from right to left and returns the index of the last occurrence of substring found before startIndex within the calling string. If substring is not found, the method returns -1.