GNOME Bugzilla – Bug 615706
g_match_info_fetch incorrectly returns NULLs for non-matched capturing parentheses after matched string
Last modified: 2010-04-14 06:17:45 UTC
According to g_match_info_fetch docs, "If match_num is a valid sub pattern but it didn't match anything (e.g. sub pattern 1, matching "b" against "(a)?b") then an empty string is returned." This is true for all sub pattern except those that are _after_ matched string. Root of problem: http://git.gnome.org/browse/glib/tree/glib/gregex.c#n822 Testcase attached.
Woops, dupe of bug 588217 *** This bug has been marked as a duplicate of bug 588217 ***
Created attachment 158673 [details] testcase