Compile a regular expression.
native Regex Regex(const char[] pattern, int flags = 0, char[] error = "", int maxLen = 0, RegexError& errcode = REGEX_ERROR_NONE)