Regex.expression

The regular expression this IRCEventHandler.Regex embodies, in string form.

Upon setting this a regex engine is also created. Because of this extra step we cannot rely on UnderscoreOpDispatcher to redirect calls.

struct Regex
ref
expression
()
(
const string expression
)

Parameters

expression string

New regular expression string.

Return Value

Type: auto ref

A this reference to the current struct instance.

Examples

Regex()
    .expression(r"(?:^|\s)MonkaS(?:$|\s)")
    .description("Detects MonkaS.")