$regexMatch

Matches a string with given Regex Pattern

Usage: $regexMatch[text;regexp;flags(optional);group index(optional, 0 by default)]

Example:


User05/26/2023
!!exec $regexmatch[Buy premium with 40 votes!;\d+]
Custom Command Bot 05/26/2023
40

Regex Flags

These are all regex flags: g, i, m, u, s, y. ::

Function difficulty Medium
Tags: regex search find search match