event_check_regex_array


Description:

[ CCode ( array_length_pos = 3.1 , array_length_type = "gsize" ) ]
[ Version ( since = "0.62" ) ]
public string[]? event_check_regex_array (Event event, Regex[] regexes, uint32 match_flags)

Like vte_terminal_event_check_regex_simple, but returns an array of strings, containing the matching text (or null if no match) corresponding to each of the regexes in regexes.

You must free each string and the array; but note that this is *not* a null-terminated string array, and so you must *not* use strfreev on it.

Parameters:

this

a Terminal

event

a Event

regexes

an array of Regex

match_flags

PCRE2 match flags, or 0

n_matches

number of items in matches, which is always equal to regexes.length

n_regexes

number of items in regexes

Returns:

a newly allocated array of strings, or null if none of the regexes matched