Regex.for_match


Description:

[ 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.

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 pattern in bytes, or -1 if the string is NUL-terminated and the length is unknown

flags

PCRE2 compile flags

Returns:

a newly created Regex, or null with error filled in




2022 vala-language.org