last_index_of

Find last index of substring

Returns the index of the last occurrence of sub in s, or -1 if not found.

Parameters

Returns

The index of the last occurrence.