Skip to main content


This Script is part of the Common Scripts Pack.#

Replaces regex match/es that are found in the string. This script will return the string after the replacement was performed.

Script Data#

Script Typejavascript


Argument NameDescription
dataThe string to perform the replacement on.
regexThe regex used to find matches that will be replaced with a new value.
newValueThe new value to replace the regex match. Pass '' to remove regex match.
replaceAllWhether to replace matches. Pass true to replace all matches, false to replace only the first occurrence.
caseInsensitiveWhether to perform a case-insensitive search and replace. Pass true to perform case-insensitive search and replace, false for case-sensitive.
multiLinePass true to indicate 'data' is a multi-line string, false otherwise.


StringReplace.ResultThe string after the replacement was performed.Unknown