Regex.matchAll
bool matchAll(string string_, glib.types.RegexMatchFlags matchOptions, out glib.match_info.MatchInfo matchInfo)Using the standard algorithm for regular expression matching only the longest match in the string is retrieved. This function uses a different algorithm so it can retrieve all the possible matches. For more documentation see [glib.regex.Regex.matchAllFull].
A #GMatchInfo structure, used to get information on the match, is stored in match_info if not null. Note that if match_info is not null then it is created even if the function returns false, i.e. you must free it regardless if regular expression actually matched.
string is not copied and is used in #GMatchInfo internally. If you use any #GMatchInfo method (except [glib.match_info.MatchInfo.free]) after freeing or modifying string then the behaviour is undefined.
Parameters
string_ | the string to scan for matches |
matchOptions | match options |
matchInfo | pointer to location where to store the #GMatchInfo, or null if you do not need it |
Returns
true is the string matched, false otherwise