Method Regexp.SimpleRegexp()->replace() class Regexp.SimpleRegexp Method replace string replace(string in, string|function(string:string) transform)