#replace
Returns the string with all occurrences of a substring replaced with another value.
#replace(value, oldValue, newValue)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
value |
path | string |
The string to search. |
oldValue |
string |
The substring to replace. |
newValue |
string |
The replacement. |
Returns
Section titled “Returns”string
Examples
Section titled “Examples”Replace every occurrence
Section titled “Replace every occurrence”{ "text": "a-b-c"}{ "result": "#replace($.text, '-', '/')"}{ "result": "a/b/c"}