S > String.lastIndexOf |
![]() ![]() ![]() |
String.lastIndexOf
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
Nothing.
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.
![]() ![]() ![]() |