[ CCode ( has_construct_function = false ) ]
public Regex.for_search (string pattern, ssize_t pattern_length, uint32 flags) throws Error
Compiles pattern
into a regex for use as a search regex with
search_set_regex.
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
.
pattern |
a regex pattern string |
pattern_length |
the length of |
flags |
PCRE2 compile flags |
a newly created Regex, or |