| Top |  |  |  |  | 
| VteRegex * | vte_regex_ref () | 
| VteRegex * | vte_regex_unref () | 
| VteRegex * | vte_regex_new_for_match () | 
| VteRegex * | vte_regex_new_for_search () | 
| gboolean | vte_regex_jit () | 
| char * | vte_regex_substitute () | 
VteRegex *
vte_regex_ref (VteRegex *regex);
Increases the reference count of regex
 by one.
VteRegex *
vte_regex_unref (VteRegex *regex);
Decreases the reference count of regex
 by one, and frees regex
if the refcount reaches zero.
VteRegex * vte_regex_new_for_match (const char *pattern,gssize pattern_length,guint32 flags,GError **error);
Compiles pattern
 into a regex for use as a match regex
with vte_terminal_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
.
VteRegex * vte_regex_new_for_search (const char *pattern,gssize pattern_length,guint32 flags,GError **error);
Compiles pattern
 into a regex for use as a search regex
with vte_terminal_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
.
gboolean vte_regex_jit (VteRegex *regex,guint32 flags,GError **error);
If the platform supports JITing, JIT compiles regex
.
char * vte_regex_substitute (VteRegex *regex,const char *subject,const char *replacement,guint32 flags,GError **error);
See man:pcre2api(3) on pcre2_substitute() for more information.
| regex | a VteRegex | |
| subject | the subject string | |
| replacement | the replacement string | |
| flags | PCRE2 match flags | |
| error | return location for a GError, or  | [nullable] | 
Since: 0.56