Share via


Matches 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 all occurrences of a regular expression and returns all the matches.

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

Top

See Also

Reference

Regex Class

System.Text.RegularExpressions Namespace