replaceRegex

fun String.replaceRegex(regex: String, replacement: String): String(source)

code golf for replace(regex.toRegex(), replacement)

Since

0.12.0