the string to perform matches against. [array length=string_len]
the length of string, or -1 if string is nul-terminated
starting index of the string to match
text to replace each match with
options for the match
a newly allocated string containing the replacements
GException on failure.
Replaces all occurrences of the pattern in regex with the replacement text. Backreferences of the form '\number' or '\g<number>' in the replacement text are interpolated by the number-th captured subexpression of the match, '\g<name>' refers to the captured subexpression with the given name. '\0' refers to the complete match, but '\0' followed by a number is the octal representation of a character. To include a literal '\' in the replacement, write '\\'. Since 2.14