function replace
source · line 7public
public fun Regex.replace(input: String, transform: (MatchResult) -> String): String
Extension receiver: Regex
Replaces every match with a callback result. Callbacks run after the native match and borrow have ended; exceptions propagate without returning partial output.
parameter input
source · line 7public
input: String
parameter receiver
source · line 7public
Regex
parameter transform
source · line 7public
transform: (MatchResult) -> String