Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static TGenerexMatch MatchExact<T, TMatch, TGenerex, TGenerexMatch>(
    this T[] input,
    GenerexBase<T, TMatch, TGenerex, TGenerexMatch> generex,
    int mustStartAt = 0,
    int? mustEndAt = null
)

Summary

Determines whether the given input sequence matches this regular expression exactly, and if so, returns information about the match.

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.
intmustStartAt Index at which the match must start (default is 0).
int?mustEndAt Index at which the match must end (default is the end of the input sequence).

Returns

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