Documentation

Regex::Search

Function

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

Searches for 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[]@