Skip to main content

$replaceTextWithRegex

Usage​

Replaces text with regular expression matching.

Parameters​

FieldDescription
textThe original text to perform replacement on
toReplaceThe text to replace matches with
regexThe regular expression pattern
flagsOptional flags for the regular expression

Example​

<AoiClient>.addCommand({
name: "$replaceTextWithRegex",
code: `$replyMessage[$replaceTextWithRegex[text to manipulate;replacement text;regular expression pattern;flags]]`,
});