Function
| Arg | Description | Type |
|---|---|---|
| source | The source string to replace. | string (required) |
| replace | The substitute string. | string |
| replace_lambda | Optionally the replacement can be a lambda. | string |
| re | A regex to apply | string (required) |
Search and replace a string with a regexp. Note you can use $1 to replace the capture string.