regexReplace

fun String.regexReplace(regex: <Error class: unknown class>, replaceWith: String): String

Replace all matches for the given regex with replaceWith and return the resulting string.

Author

Griefed