Matches a string against a regular expression pattern.
If you intend on using the same regular expression pattern multiple times, consider using CompileRegex and MatchRegex instead of making this function reparse the expression each time.
stock int SimpleRegexMatch(const char[] str, const char[] pattern, int flags = 0, char[] error = "", int maxLen = 0)