Skip to content

Functions: Regex_Replace Function

Kristof Kovacs edited this page Jul 9, 2023 · 1 revision

Regex_Find function

Aliases

None

Description

Replaces all matches of given regex in a string with given string

Arguments

This function has 2 required arguments.

  • source (String) → The string to be checked.
  • regex (String) → The string which is regex pattern.
  • replacement (String) → The string that will replace all matches

Schematics

REGEX_REPLACE(<source>;<regex>;<replacement>) → (String)

Example

REGEX_REPLACE("I am a noob";"noob";"Pro")  "I am a Pro"
Clone this wiki locally