string to perform matches against
starting index of the string to match, in bytes
options for the match
a function to call for each match
user data to pass to the function
a newly allocated string containing the replacements
GException on failure.
2.14
Replaces occurrences of the pattern in regex with the output of eval for that occurrence.
Setting start_position differs from just passing over a shortened string and setting G_REGEX_MATCH_NOTBOL in the case of a pattern that begins with any kind of lookbehind assertion, such as "\b".
The following example uses Regex.replaceEval to replace multiple strings at once: