This documentation is archived and is not being maintained.
Regex Constructor
.NET Framework 1.1
Initializes a new instance of the Regex class.
Overload List
Initializes a new instance of the Regex class with no parameters.
Supported by the .NET Compact Framework.
[Visual Basic] Protected Sub New()
[C#] protected Regex();
[C++] protected: Regex();
[JScript] protected function Regex();
Initializes and compiles an instance of the Regex class for the specified regular expression.
Supported by the .NET Compact Framework.
[Visual Basic] Public Sub New(String)
[C#] public Regex(string);
[C++] public: Regex(String*);
[JScript] public function Regex(String);
Initializes and compiles an instance of the Regex class for the specified regular expression, with options that modify the pattern.
Supported by the .NET Compact Framework.
[Visual Basic] Public Sub New(String, RegexOptions)
[C#] public Regex(string, RegexOptions);
[C++] public: Regex(String*, RegexOptions);
[JScript] public function Regex(String, RegexOptions);
See Also
Regex Class | Regex Members | System.Text.RegularExpressions Namespace
Show: