replace

replace(source: text, pattern: text, replacement: text) 🡒 text, pure function

Replaces in the source text value all the occurrence of pattern by the replacement value.

Example:

source = "Hello World!"

show summary "" a1c2 with
  replace(source, "l", "L") // returns "HeLLo WorLd!"
  replace(source, " ", "___") // returns "Hello___World!"
  replace(source, " World", "") // returns "Hello!"

See also