gboolean g_regex_match_all ( const GRegex* regex, const gchar* string, GRegexMatchFlags match_options, GMatchInfo** match_info )
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 g_regex_match_all_full().
GMatchInfo structure, used to get information on the match, is
match_info if not
NULL. Note that if
NULL then it is created even if the function returns
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 g_match_info_free()) after
freeing or modifying
string then the behaviour is undefined.
The string to scan for matches.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
Pointer to location where to store the
NULLif you do not need it.
The argument will be set by the function. The argument can be
The instance takes ownership of the data, and is responsible for freeing it.