Replace
This formula allows you to replace a particular substring occurrence inside another string with a given replacement.
JSON Format
{
"type": "replace",
"string": ...,
"occurrence": ...,
"replace": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
string | StatFormulaComponent | ✓ | The formula for the string where the replacements should be made |
occurrence | StatFormulaComponent | ✓ | The formula for the substring occurrence you want to replace. The Replace formula will replace all occurrences of this substring in the original string. |
replace | StatFormulaComponent | ✓ | The formula for the string that the occurrences should be replaced for. |