Compiled |
Specifies that the regular expression is compiled to an assembly. This yields faster execution but increases startup time. |
CultureInvariant |
|
ECMAScript |
Enables ECMAScript-compliant behavior for the expression. This flag can be used only in conjunction with the RegexOptions.IgnoreCase, RegexOptions.Multiline, and RegexOptions.Compiled flags. The use of this flag with any other flags results in an exception. |
ExplicitCapture |
Specifies that the only valid captures are explicitly named or numbered groups of the form (?<name>.). This allows unnamed parentheses to act as noncapturing groups without the syntactic clumsiness of the expression (?:.). |
IgnoreCase |
Specifies case-insensitive matching. |
IgnorePatternWhitespace |
Eliminates unescaped white space from the pattern and enables comments marked with #. |
Multiline |
Multiline mode. Changes the meaning of ^ and $ so they match at the beginning and end, respectively, of any line, and not just the beginning and end of the entire string. |
None |
Specifies that no options are set. |
RightToLeft |
Specifies that the search will be from right to left instead of from left to right. |
Singleline |
Specifies single-line mode. Changes the meaning of the dot (.) so it matches every character (instead of every character except \n). |