Name of RegexOptions
NameOf
01 Syntax
02 Fields
| Name | Overloads | Summary |
|---|---|---|
| None | 2 | Specifies that no options are set. |
| IgnoreCase | 2 | Specifies case-insensitive matching. |
| Multiline | 2 | 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. For mor… |
| ExplicitCapture | 2 | Specifies that the only valid captures are explicitly named or numbered groups of the form (?<name>…). |
| Compiled | 2 | Specifies that the regular expression is compiled to an assembly. |
| Singleline | 2 | Specifies single-line mode. |
| IgnorePatternWhitespace | 2 | Eliminates unescaped white space from the pattern and enables comments marked with #. |
| RightToLeft | 2 | Specifies that the search will be from right to left instead of from left to right. |
| ECMAScript | 2 | Enables ECMAScript-compliant behavior for the expression. |
| CultureInvariant | 2 | Specifies that cultural differences in language is ignored. |
03 Members
Specifies that no options are set. For more information about the default behavior of the regular expression engine, see the "Default Options" section in the Regular Expression Options topic.
Specifies case-insensitive matching. For more information, see the "Case-Insensitive Matching " section in the Regular Expression Options topic.
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. For more information, see the "Multiline Mode" section in the Regular Expression Options topic.
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 (?:…). For more information, see the "Explicit Captures Only" section in the Regular Expression Options topic.
Specifies that the regular expression is compiled to an assembly. This yields faster execution but increases startup time. This value should not be assigned to the System.Text.RegularExpressions.RegexCompilationInfo.Options property when calling the System.Text.RegularExpressions.Regex.CompileToAssembly(System.Text.RegularExpressions.RegexCompilationInfo[],System.Reflection.AssemblyName) method. For more information, see the "Compiled Regular Expressions" section in the Regular Expression Options topic.
Specifies single-line mode. Changes the meaning of the dot (.) so it matches every character (instead of every character except \n). For more information, see the "Single-line Mode" section in the Regular Expression Options topic.
Eliminates unescaped white space from the pattern and enables comments marked with #. However, this value does not affect or eliminate white space in character classes, numeric quantifiers, or tokens that mark the beginning of individual regular expression language elements. For more information, see the "Ignore White Space" section of the Regular Expression Options topic.
Specifies that the search will be from right to left instead of from left to right. For more information, see the "Right-to-Left Mode" section in the Regular Expression Options topic.
Enables ECMAScript-compliant behavior for the expression. This value can be used only in conjunction with the System.Text.RegularExpressions.RegexOptions.IgnoreCase, System.Text.RegularExpressions.RegexOptions.Multiline, and System.Text.RegularExpressions.RegexOptions.Compiled values. The use of this value with any other values results in an exception.For more information on the System.Text.RegularExpressions.RegexOptions.ECMAScript option, see the "ECMAScript Matching Behavior" section in the Regular Expression Options topic.
Specifies that cultural differences in language is ignored. For more information, see the "Comparison Using the Invariant Culture" section in the Regular Expression Options topic.