regexReplace

fun String.regexReplace(regex: Regex, replaceWith: String): String

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

Author

Griefed