Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Extension method: IEnumerable<TGenerexMatch> Matches<T, TMatch, TGenerex, TGenerexMatch>(this T[], GenerexBase<T, TMatch, TGenerex, TGenerexMatch>, int)

Declaration

public static IEnumerable<TGenerexMatch> Matches<T, TMatch, TGenerex, TGenerexMatch>(
    this T[] input,
    GenerexBase<T, TMatch, TGenerex, TGenerexMatch> generex,
    int startAt = 0
)

Summary

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

Generic type parameters

T Type of the objects in the collection.
TMatch See GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.
TGenerex
  • Must derive from: RT.Generexes.GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.
See GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.
TGenerexMatch See GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.

Parameters

this T[]input Input sequence to match the regular expression against.
GenerexBase<T, TMatch, TGenerex, TGenerexMatch>generex The regular expression to match.
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.