regexp.replaceAllString() function
The regexp.replaceAllString() function replaces all regular expression matches in a string with a specified replacement. Output data type: String The regular expression used to search v. The string value to search. The replacement for matches to r. Replace regular expression matches in string column values
https://docs.influxdata.com/flux/v0.x/stdlib/regexp/replaceallstring/