str_replace
Replaces occurrences of a substring within a string.
Syntax
str_replace(<text>, <old>, <new>)
| Parameter | Type | Description |
|---|---|---|
| text | Text | The text value to process. |
| old | Text | The Old string value. |
| new | Text | The New string value. |
Return values
Text
Usage
Replaces '@gmail.com' with '@company.com' in email addresses.
str_replace(orders.email, '@gmail.com', '@company.com')