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.