$replaceTextWithRegex
$replaceTextWithRegex
will replace specific segments of text.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
text | string | Text you want to modify. | true |
reg | string | The regex that will be replaced. | true |
flags | string | Flags. | true |
newText | string | The text that will replace reg . | false |
Flags
Flags | |
---|---|
g | Replace all matches (case-sensitive) |
m | Multiline matching |
i | Replace all matches (case-insensitive) |
Example(s)
This will replace more
with less
:
Advanced Example
This will replace less
with more
: