diff --git a/docs/reference/glib/regex-syntax.sgml b/docs/reference/glib/regex-syntax.sgml index 5be56baae..5e14feaa4 100644 --- a/docs/reference/glib/regex-syntax.sgml +++ b/docs/reference/glib/regex-syntax.sgml @@ -1211,7 +1211,7 @@ cat(aract|erpillar|) matches one of the words "cat", "cataract", or It sets up the subpattern as a capturing subpattern. This means that, when the whole pattern matches, that portion of the -string that matched the subpattern can be obtained using g_regex_fetch(). +string that matched the subpattern can be obtained using g_match_info_fetch(). Opening parentheses are counted from left to right (starting from 1, as subpattern 0 is the whole matched string) to obtain numbers for the capturing subpatterns.