Why is there a replaceFirst() method but not a replaceAfter() method?

Why is there a replaceFirst() method but not a replaceAfter() method?

this is a often needed method whic is missing in the standard library and for the design every …first method should include a …last method by default…

There IS a replaceAfter() method.

https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.text/replace-after.html

Thats not the same Functionality

If you mean this functionality:

Then the name of the function you are looking for is replaceLast, which in this case does not exist.

And this should be fixed for consistency