Skip to main content Skip to complementary content
Close announcements banner

replace

Replaces characters that match a regular expression with another string.

Arguments

  1. Input string.
  2. Regular expression as a string.
  3. Replacement string.
  4. Optional: Boolean defining whether the function should replace only the first occurrence. The default value is false.
  5. Optional: Timeout in milliseconds as a long. The default value is 10000.

Examples

Expression Result
replace("abc_123_456", "\d+", "000", true, 15000) "abc_000_456"

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!