According to the Plugin API Documentation, the RegexMatchAll() function is described like this:
Format:
RegexMatchAll(s, RegEx, IgnoreCase, &Matches, &Positions)
Returns:
Bool (Which is either true or false (1/0), but I get 0 and -1 !!)
Decription:
Match all instances in string by regular expression.
Caseless matching if IgnoreCase is True.
Matches is array of array of string that receives all matched instances, containing substrings by regular expression groups.
Positions is array of array of integer that receives all matched instances, containing positions in base string of all matched regular expression groups.
When I do a "Length(Matches)" I get a positive value back, equal to the number of matches.
But then Im stuck, as I can't figure out how to iterate over the "Matches" results.
Everything I do just results in an error.
So could you PLEASE add a code example on how to iterate over the results from "RegexMatchAll" ?
Program used: WeBuilder 2015 v13.2.0.164