Find last index of substring
Returns the index of the last occurrence of sub in s, or -1 if not found.
sub
s
s (String): The search string.
String
sub (String): The substring to find.
The index of the last occurrence.