GLib.RegexEvalCallback
Description: Reference for GLib.RegexEvalCallback

### Function

# GLibRegexEvalCallback

since: 2.14

#### Declaration

    gboolean
    (* GRegexEvalCallback) (
      const GMatchInfo* match_info,
      GString* result,
      gpointer user_data
    )

#### Description [src]

A callback passed to `g_regex_replace_eval()`.

It is called for each occurrence of the pattern in the string passed to `g_regex_replace_eval()`, and it should append the replacement to `result`.

Use `g_match_info_get_regex()` and `g_match_info_get_string()` if you need the regex object itself, or the matched string.

Available since: 2.14

#### Parameters

`match_info`

  Type: `GMatchInfo`

  The `GMatchInfo` generated by the match.

  The data is owned by the caller of the function.

`result`

  Type: `GString`

  The new string.

  The data is owned by the caller of the function.

`user_data`

  Type: `gpointer`

  User data passed to `g_regex_replace_eval()`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: `gboolean`

False to continue the replacement process; true to stop it.