Regex.for_match
Description:
[ CCode ( has_construct_function = false ) ]
public Regex.for_match (string pattern, ssize_t pattern_length, uint32 flags) throws Error
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.
The regex will be compiled using PCRE2_UTF and possibly other flags, in addition to the flags supplied in flags
.
Parameters:
pattern |
a regex pattern string |
pattern_length |
the length of |
flags |
PCRE2 compile flags |
Returns:
a newly created Regex, or |