Skip to content

replace

replace(string, search, replacement) → string · String

Replace all literal occurrences of a substring.

  • string (required): the string to modify

  • search (required): literal substring to find

  • replacement (required): what to replace with

utlx
replace("Hello World", "World", "UTL-X")   // "Hello UTL-X"
replace("2026-05-01", "-", "/")             // "2026/05/01" (replaces ALL occurrences)

Released under AGPL-3.0.