Matches Method

Regex.Matches Method

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

Searches an input string for all occurrences of a regular expression and returns all the successful matches.

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

  NameDescription
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 method Static member Matches(String, String) Searches the specified input string for all occurrences of the regular expression specified in the pattern parameter.
Public method Static member Matches(String, String, RegexOptions) Searches the specified input string for all occurrences of the regular expression supplied in a pattern parameter with matching options supplied in an options parameter.
Public method Static member Matches(String, String, RegexOptions, TimeSpan) Searches the specified input string for all occurrences of a specified regular expression, using the specified matching options and time-out interval.
Top

Show:
© 2017 Microsoft