Match Method

Regex.Match Method

 

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

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

NameDescription
System_CAPS_pubmethodMatch(String)

Searches the specified input string for the first occurrence of the regular expression specified in the Regex constructor.

System_CAPS_pubmethodMatch(String, Int32)

Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position in the string.

System_CAPS_pubmethodMatch(String, Int32, Int32)

Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position and searching only the specified number of characters.

System_CAPS_pubmethodSystem_CAPS_staticMatch(String, String)

Searches the specified input string for the first occurrence of the specified regular expression.

System_CAPS_pubmethodSystem_CAPS_staticMatch(String, String, RegexOptions)

Searches the input string for the first occurrence of the specified regular expression, using the specified matching options.

System_CAPS_pubmethodSystem_CAPS_staticMatch(String, String, RegexOptions, TimeSpan)

Searches the input string for the first occurrence of the specified regular expression, using the specified matching options and time-out interval.

Return to top
Show:
© 2016 Microsoft