RegexMatch
Script
Strings
8.0 OC
array
string
text
String to match.
string
regex
Regular expression in ECMAScript syntax.
int
flags
Bitmask of the following values:
Constant
Description
Regex_CaseInsensitive
Regular expression is case insensitive.
Regex_FirstOnly
Stop after first match, returning an array with zero or one elements.
Performs a regular expression match, returning an array of arrays containing [full match, submatch 1, submatch 2, etc.].
Log("%v", RegexMatch("OC 8.0", "(\\w+)\\s(\\d+)\\.(\\d+)"));
Parses a version string, printing [["OC 8.0", "OC", "8", "0"]].
RegexSearch
RegexReplace
RegexSplit
Luchs2016-09