lastIndexOf

Finds the last matching character.


fun String.lastIndexOf(char: Char, startIndex: Int): Int(source)

Searches backwards from startIndex for char.


Finds the last matching substring, starting at the last character.


fun String.lastIndexOf(string: String, startIndex: Int): Int(source)

Searches backwards from startIndex for string, comparing UTF-16 code units.