--- title: "$RegexReplace" ---
This is generated from the built in components of BuildMaster 2024.0, and may be different than what you have installed (especially if you have extensions); go to [Gear Icon] -> Administration -> Functions within your BuildMaster instance to see exactly what operations are available.

Searches for and replaces text in a string using a regular expression.

Script usage:

$RegexReplace(Text, MatchExpression, ReplaceWith)

Parameters:

NameDescription
TextThe string to search for replacements.
MatchExpressionThe regular expression used to search the first argument.
ReplaceWithThe substring to replace occurrences of the second parameter with.