match_all
Description:
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.
Parameters:
this | |
match_options |
match options |
match_info |
pointer to location where to store the MatchInfo, or null if you do not need it |
string |
the string to scan for matches |
Returns:
true is the string matched, false otherwise |