Match Method

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

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 method Match(String) Searches the specified input string for the first occurrence of the regular expression specified in the Regex constructor.
Public method Match(String, Int32) Searches the input string for the first occurrence of a regular expression, beginning at the specified starting position in the string.
Public methodStatic member Match(String, String) Searches the specified input string for the first occurrence of the specified regular expression.
Public methodStatic member Match(String, String, RegexOptions) Searches the input string for the first occurrence of the specified regular expression, using the specified matching options.

Top

See Also

Reference

Regex Class

System.Text.RegularExpressions Namespace