$regexReplace

Uses a regular expression to replace matching queries

Usage

$regexReplace[text;regex;flags;new text]

Example 1:

Member02/20/2024
!!exec $regexReplace[My age is 900 years old.;\d+;g;[SECRET AGE]]

Custom Command Bot 02/20/2024
My age is [SECRET AGE] years old.