All Commands
All String
Commands
REPLACE
Replaces all occurrences of the search string with the replacement string
You can use {REPLACE({OBJ_DATA(0, address)}, CRLF, {COMMA})} to turn the text in a plain text address to a single line.
This command can have an {END_REPLACE} command.
In this case, the string in-between will replace the first parameter and the format will be {REPLACE} string {{END_REPLACE(parameters 2 onwards)}
This is particularly useful if the string is particularly long or contains commas.
Number | Name | Default | Type | Description |
---|---|---|---|---|
1 | string | String | The string to search (Haystack) | |
2 | search | String | The string to search for (Needle) | |
3 | replace | String | The string to replace the needle with. |