openplanet Download Openplanet Login with ManiaPlanet

Regex group

Functions

string Regex::Replace(const string&in source, const string&in pattern, const string&in replace)

Perform a regex search and replace on the given string.

bool Regex::IsMatch(const string&in source, const string&in pattern)

Perform a regex match on the source string and returns true if it matches.

string[]@ Regex::Match(const string&in source, const string&in pattern)

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