Re: recursive regex match?

2011-07-31 Thread Egon Andersen
Petr Tomasek wrote: Hi! I tried to make a recursive regexp using the g_regexp_* functions, i.e. something like: regex = g_regex_new (^\\s*(?:(shift|ctrl|alt)-)*([a-z])\\s*$, G_REGEX_CASELESS|G_REGEX_OPTIMIZE, 0, NULL); But when doing g_regex_match() together with g_match_info_fetch_all() I

recursive regex match?

2011-07-30 Thread Petr Tomasek
Hi! I tried to make a recursive regexp using the g_regexp_* functions, i.e. something like: regex = g_regex_new (^\\s*(?:(shift|ctrl|alt)-)*([a-z])\\s*$, G_REGEX_CASELESS|G_REGEX_OPTIMIZE, 0, NULL); But when doing g_regex_match() together with g_match_info_fetch_all() I only get the first