RegexOptions
Tip
This is a builtin dotnet type. The documentation and api interface are generated from dotnet source files.
Fields:
Compiled | 0x00000008 | Specifies that the regular expression is compiled to MSIL code, instead of being interpreted. Compiled regular expressions maximize run-time performance at the expense of initialization time. This value should not be assigned to the Options property when calling the CompileToAssembly method. For more information, see the "Compiled Regular Expressions" section in the Regular Expression Options article. | |
CultureInvariant | 0x00000200 | Specifies that cultural differences in language is ignored. For more information, see the "Comparison Using the Invariant Culture" section in the Regular Expression Options article. | |
ECMAScript | 0x00000100 | F:System.Text.RegularExpressions.RegexOptions.ECMAScript | |
ExplicitCapture | 0x00000004 | Specifies that the only valid captures are explicitly named or numbered groups of the form (? | |
IgnoreCase | 0x00000001 | Specifies case-insensitive matching. For more information, see the "Case-Insensitive Matching " section in the Regular Expression Options article. | |
IgnorePatternWhitespace | 0x00000020 | 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 article. | |
Multiline | 0x00000002 | 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 article. | |
NonBacktracking | 0x00000400 | Enable matching using an approach that avoids backtracking and guarantees linear-time processing in the length of the input. | |
None | 0x00000000 | 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 article. | |
RightToLeft | 0x00000040 | 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 article. | |
Singleline | 0x00000010 | 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 article. |