getReplaceAll

fun getReplaceAll(input: String?, regex: String?, replacement: String?): String?

Replace every subsequence of the input sequence that matches the pattern with the given replacement string.

Return

the string constructed by replacing each matching subsequence by the replacement string, substituting captured subsequences as needed

Parameters

input

The input.

regex

The regex.

replacement

The replacement string.