regex_replace
Type: Function · Category: parsers
Search and replace a string with a regexp. Note you can use $1 to replace the capture string.
| Argument | Type | Description |
|---|---|---|
source |
string (required) | The source string to replace. |
replace |
string | The substitute string. |
replace_lambda |
string | Optionally the replacement can be a lambda. |
re |
string (required) | A regex to apply |
Platforms: macOS, Linux, Windows