replace
open fun replace(matchStart: <Error class: unknown class>, matchEnd: <Error class: unknown class>, replace: String, replaceLength: Int): <Error class: unknown class><Boolean>
Replaces a search match by another text. If @match_start and @match_end doesn't correspond to a search match, false is returned.
Return
whether the match has been replaced.
Parameters
matchStart
the start of the match to replace.
matchEnd
the end of the match to replace.
replace
the replacement text.
replaceLength
the length of @replace in bytes, or -1.