[ CCode ( has_construct_function = false ) ]
[ Version ( since = "0.76" ) ]
public Regex.for_search_full (string pattern, ssize_t pattern_length, uint32 flags, uint32 extra_flags, out size_t error_offset) 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, and man:pcre2api(3) for information about the supported
flags and extra_flags.
The regex will be compiled using <literal>PCRE2_UTF</literal> and possibly other flags, in addition to the flags supplied in
flags.
If regex compilation fails, throws will be set and error_offset point to error as an
offset into pattern.
| pattern |
a regex pattern string |
| pattern_length |
the length of |
| flags |
PCRE2 compile flags |
| error_offset |
return location to store the error offset |
|
a newly created Regex, or null |