Options Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the options that were passed into the Regex constructor.

Namespace:  System.Text.RegularExpressions
Assembly:  System.Text.RegularExpressions (in System.Text.RegularExpressions.dll)

public RegexOptions Options { get; set; }

Property Value

Type: System.Text.RegularExpressions..::..RegexOptions
One or more members of the RegexOptions enumeration that represent options that were passed to the Regex constructor

The value of the Options property consists of one or more members of the RegexOptions enumeration. If no options were defined in the Regex class constructor, its value is RegexOptions..::..None. The available options are discussed in detail in the Regular Expression Options topic.