$regexMatch
Matches a string with the given Regex Pattern and returns the matched text or multiple matches seperated by the seperator
$regexMatch[text;regexp;flags(optional);group index(optional, 0 by default) or all;separator (optional)]
Usage: Note about Separator
It can only be used when group index is all
.
in case flag is g
it will return all matches glued with that separator
in case flag is not g
it will return the whole matched text and matched groups
Example (Find the first number):
Example (Find all numbers):
Example (Find 2nd number only):
Regex Flags
These are all regex flags: g, i, m, u, s, y.
::