EF.RegEx
Regex support.
Routines
function StrMatchesPatternOrRegex(const AString, APatternOrRegex: string;Matches a string to a pattern. If the specified pattern includes a regex introducer, the rest is interpreted as a regular expression, otherwise the whole string is interpreted as a (optionally negated) pattern and passed to StrMatchesEx. The regex introducer is either the string 'REGEX:' (the function returns True if the string matches the expression) or '~REGEX:' (the function returns True if the string DOESN'T match the expression) at the beginning of the pattern.
When AIgnoreCase is True the comparison is case-blind: the wildcard sides are folded to upper case (the '~', '*' and '?' metacharacters are not affected), and the regex is matched with roIgnoreCase. The default False keeps the historical case-sensitive behaviour for existing callers.
function RegExMatches(const AString, APattern: string;Simple regex pattern matching. With AIgnoreCase the match is case-blind.
