Terminal.matchAddRegex

Adds the regular expression regex to the list of matching expressions. When the user moves the mouse cursor over a section of displayed text which matches this expression, the text will be highlighted.

Note that regex should have been created using the <literal>PCRE2_MULTILINE</literal> flag.

class Terminal
int
matchAddRegex

Parameters

regex vte.regex.Regex

a #VteRegex

flags uint

PCRE2 match flags, or 0

Return Value

Type: int

an integer associated with this expression