Documentation

Regex::Match

Function

string[]@ Regex::Match(const string&in source, const string&in pattern, int flags = Regex::Flags::ECMAScript)

Performs a regex match on the source string and returns the matched groups if it matches, or an empty array if it doesn't.

string source

string pattern

int flags

Returns string[]@