findLast
Returns the last character matching the given predicate, or null if no such character was found.
inline fun CharSequence.findLast(predicate: (Char) -> Boolean): Char?(source)
val text = "Kotlin1234"
val lastDigit: Char? = text.findLast { it.isDigit() } // lastDigit == '4'