Skip to content

REPLACE

Replace all occurrences of the search string with the replacement string.

js
REPLACE(source_string, search_string, replacement_string)

Parameters

  • source_string - Specifies the string to be searched.
  • search_string - Specifies the value to find.
  • replacement_string - Specifies the value to use as a replacement.

Examples

js
REPLACE("Hello world!", "world", "Peter")

Result: Hello Peter!

Note: Replace the characters world in the string Hello world! with Peter.