match_add_regex


Description:

[ Version ( since = "0.46" ) ]
public int match_add_regex (Regex regex, uint32 flags)

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 PCRE2_MULTILINE flag.

Parameters:

this

a Terminal

regex

a Regex

flags

PCRE2 match flags, or 0

Returns:

an integer associated with this expression