String.lastIndexOfString()

Signature

int lastIndexOfString (String s1, int fromIndex, String s2)

Domain

action, condition, query

Description

Returns the index within the String s1 of the last occurrence of the String s2.

Parameters

NameTypeDescription
s1StringA String to search.
fromIndexintThe index within s1 to begin the search.
s2StringA String to search for within the String s1.

Returns

TypeDescription
intThe index within the String s1 of the last occurrence of the String s2.

Cautions

none