Constructor regexp.regexp
Overload
Compiles regular expression string.
public regexp(string rx, RXFlags flags = 0)
Parameters
rx (string)
Regular expression. Cannot be |
flags (RXFlags)
Options. Default 0. Flag UTF is implicitly added if rx contains non-ASCII characters and there is no flag NEVER_UTF. |
Exceptions
ArgumentNullException |
ArgumentException
Invalid regular expression. Or failed to compile it for some other reason (unlikely). |
Remarks
Calls PCRE API function pcre2_compile.
PCRE regular expression syntax: full, short.
Examples in class help: regexp.