Description
Performs a find and replace, taking a regular expression as an input defining the text to find.
Syntax
ReplaceRegEx(<TextToSearch>,<RegExToFind>,<NewText>)
Arguments
Argument | Type | Description | Optional |
---|---|---|---|
TextToSearch | Text | Text value to perform the find and replace on | No |
RegExToFind | Text | A regular expression defining the text pattern to find | No |
NewText | Text | New text value to substitute in place of any regular expression text matches | No |
Returns
Text
Examples
Expression: | ReplaceRegEx("The cat sat on the mat", "cat|mat", "thing") |
Returns: | The thing sat on the thing |