Regex Constructor

Regex Constructor

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Initializes a new instance of the Regex class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Protected method Regex Initializes a new instance of the Regex class.
Public method Regex(String) Initializes and compiles a new instance of the Regex class for the specified regular expression.
Public method Regex(String, RegexOptions) Initializes and compiles a new instance of the Regex class for the specified regular expression, with options that modify the pattern.
Public method Regex(String, RegexOptions, TimeSpan) Initializes a new instance of the Regex class for the specified regular expression, with options that modify the pattern and a value that specifies how long a pattern-matching method should attempt a match before it times out.
Top

Show:
© 2017 Microsoft