RegexOptions class

RegexOptions class

The RegexOptions type exposes the following members:

Fields

Field Description
NONE Specifies that no options are set.
IGNORE_CASE Specifies case-insensitive matching.
MULTILINE Multiline mode: ^ and $ match at the beginning and end of any line.
EXPLICIT_CAPTURE Specifies that the only valid captures are explicitly named or numbered groups.
COMPILED Specifies that the regular expression is compiled instead of interpreted.
SINGLELINE Single-line mode: the dot (.) matches every character, \n included.
IGNORE_PATTERN_WHITESPACE Eliminates unescaped white space from the pattern and enables comments marked with #.
RIGHT_TO_LEFT Specifies that the search runs from right to left.
ECMA_SCRIPT Enables ECMAScript-compliant behavior; combines only with IgnoreCase, Multiline and Compiled.
CULTURE_INVARIANT Specifies that cultural differences in language are ignored.
NON_BACKTRACKING Matches without backtracking, in time linear in the length of the input.

Guides

Task guides that use RegexOptions:

See Also