Skip to content

$stringReplaceRegex

Replace something in the provided text using regular expressions.

Parameters

NameDescriptionEnforcedDefault Value
TextThe text to work with.YesNone
RegexThe regular expression to be matched.YesNone
ReplacerThe word to replace the match with.No
FlagsThe flags for the regular expression.Nog

Example

$stringReplaceRegex[text;regex;replacer?;flags?]

Function Aliases

  • $replaceWithRegex
  • $replaceRegex
  • $stringReplaceWithRegex