$regexReplace

Uses a regular expression to replace matching queries

Usage

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

Example 1:

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

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