Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: IEnumerable<StringerexMatch> Matches(string, int)

Declaration

public IEnumerable<StringerexMatch> Matches(
    string input,
    int startAt = 0
)

Summary

Returns a sequence of non-overlapping regular expression matches, optionally starting the search at the specified character index.

Parameters

stringinput String to match the regular expression against.
intstartAt Optional index at which to start the search. Matches that start before this index are not included.

Remarks

The behaviour is analogous to Regex.Matches(string, string). The documentation for that method claims that it returns “all occurrences of the regular expression”, but this is false.