[ CCode ( has_construct_function = false ) ]
public Regex.for_match (string pattern, ssize_t pattern_length, uint32 flags) throws Error
Compiles pattern into a regex for use as a match regex with
match_add_regex or vte_terminal_event_check_regex_simple.
See man:pcre2pattern(3) for information about the supported regex language, and man:pcre2api(3) for information about the supported
flags.
The regex will be compiled using <literal>PCRE2_UTF</literal> and possibly other flags, in addition to the flags supplied in
flags.
| pattern |
a regex pattern string |
| pattern_length |
the length of |
| flags |
PCRE2 compile flags |
|
a newly created Regex, or null with throws filled in |