### Method

# Vte Terminal event_check_regex_simple

since: 0.46

#### Declaration [src]

    gboolean
    vte_terminal_event_check_regex_simple (
      VteTerminal* terminal,
      GdkEvent* event,
      VteRegex** regexes,
      gsize n_regexes,
      guint32 match_flags,
      char** matches
    )

#### Description [src]

Checks each regex in `regexes` if the text in and around the position of the event matches the regular expressions. If a match exists, the matched text is stored in `matches` at the position of the regex in `regexes`; otherwise `NULL` is stored there. Each non-`NULL` element of `matches` should be freed with g_free().

Note that the regexes in `regexes` should have been created using the <literal>PCRE2_MULTILINE</literal> flag.

Available since: 0.46

This method is not directly available to language bindings.

The implementation of this method is provided by `vte_terminal_event_check_regex_array()` in language bindings.

#### Parameters

`event`

  Type: `GdkEvent`

  A `GdkEvent`.

  The data is owned by the caller of the method.

`regexes`

  Type: An array of `VteRegex*`

  An array of `VteRegex`.

  The length of the array is specified in the `n_regexes` argument.
  The data is owned by the caller of the method.

`n_regexes`

  Type: `gsize`

  Number of items in `regexes`.

  The argument will be set by the function.

`match_flags`

  Type: `guint32`

  PCRE2 match flags, or 0.

`matches`

  Type: An array of `char*`

  A location to store the matches.

  The argument will be set by the function.
  The length of the array is specified in the `n_regexes` argument.
  The caller of the method takes ownership of the returned data, and is responsible for freeing it.
  Each element is a NUL terminated UTF-8 string.

#### Return value

Type: `gboolean`

`TRUE` iff any of the regexes produced a match.