public bool match_all (string str, RegexMatchFlags match_options = 0, out MatchInfo match_info = null)

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 match_all_full.

A MatchInfo 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 MatchInfo internally. If you use any MatchInfo method (except g_match_info_free) after freeing or modifying string then the behaviour is undefined.



a Regex structure from Regex


match options


pointer to location where to store the MatchInfo, or null if you do not need it


the string to scan for matches


true is the string matched, false otherwise