/* Title: Global Regular Expression Match Performs a global regular expression match. Function: RegExMatchAll Parameters: h - Haystack n - NeedleRegEx v - QuotedOutputVar p - StartingPosition (default: 1) s - PositionSuffix (default: "#") x - Limit - (default: 250) Notes: Subpatterns are created as OutputVar[x][y] where x is the main index and y is a name (i.e. (?P)) or sub-index (base 1) Returns: The number of matches. Function: grep A much faster variant of which lacks support for named subpatterns. Parameters: h - Haystack n - NeedleRegEx v - UnquotedOutputVar p - Subpattern (default: 0) s - StartingPosition (default: 1) d - Delimiter (default: ",") z - MatchFromLast (default: true) Notes: *OutputVar* is set to the list of matches of the specified subpattern, where 0 is the entire pattern. Returns: A list of match positions. About: License - Version 1.3 by Titan . - Licenced under GNU GPL . */ RegExMatchAll(h, n, v, p = 1, s = "", x = 250) { local c = 0, t, t1, b, b0, b1, i, f, j, a Loop If p := RegExMatch(n, "si)(?)?.+?(?