Function |replace

regex::|replace


Usage

|replace(text, regex, replacer)

Parameters

↳ text: string
↳ regex: string
↳ replacer: string

Return

↴ Option<string>


Replace text according to a regex and replacer.

Return string with replaced content, or none if an error in regex occured.

The regex syntax is Unicode-aware. Please refer to Regex Syntax in documentation for full syntax description.