Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static TGenerexMatch MatchReverse<T, TMatch, TGenerex, TGenerexMatch>(
    this T[] input,
    GenerexBase<T, TMatch, TGenerex, TGenerexMatch> generex,
    int? endAt = null
)

Summary

Determines whether the given input sequence matches this regular expression, and if so, returns information about the first match found by matching the regular expression backwards (starting from the end of the input sequence).

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.
int?endAt Optional index at which to end the search. Matches that end at or after this index are not included.

Returns

An object describing a regular expression match in case of success; null if no match.