Regex.Match Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Searches an input string for a substring that matches a regular expression pattern and returns the first occurrence as a single Match object.

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

Overload List

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Match(String) Searches the specified input string for the first occurrence of the regular expression specified in the Regex constructor.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Match(String, Int32) Searches the input string for the first occurrence of a regular expression with a specified input string starting position.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Match(String, String) Searches the specified input string for the first occurrence of the regular expression supplied in the pattern parameter.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 Match(String, Int32, Int32) Searches the input string for the first occurrence of a regular expression with a specified input string starting position and input string length.
Public methodStatic memberSupported by Silverlight for Windows PhoneSupported by Xbox 360 Match(String, String, RegexOptions) Searches the input string for the first occurrence of the regular expression supplied in a pattern parameter with matching options supplied in an options parameter.

Top