last_index_of

Find last index of substring

Returns the character index of the last occurrence of sub in s, or -1 if not found. Indices are character-based (Unicode code points).

Parameters

Returns

The character index of the last occurrence.