Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: MatchCollection RegexMatches(this string, string, RegexOptions)

Declaration

public static MatchCollection RegexMatches(
    this string input,
    string pattern,
    RegexOptions options = None
)

Summary

Searches the specified input string for all occurrences of a specified regular expression pattern.

Parameters

this stringinput The string to search for a match.
stringpattern The regular expression pattern to match.
RegexOptionsoptions A bitwise combination of the enumeration values that provide options for matching.

Returns

A collection of the Match objects found by the search. If no matches are found, the method returns an empty collection object.