Sign In

$replaceRegex[]

Replace text in a string using regex

v1.0.0+ Requires Brackets

Usage

$replaceRegex[;;;;]

Arguments

NameTypeRequiredDescription
text
StringYesThe base text
match
StringYesRegex to match in base
flags
StringYesThe flags to use for the regex
new value
StringYesThe text to replace matches with
amount
NumberNoHow many times to perform this replacement

Output

String

Was this page helpful?