Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: TResult matchExact<TResult>(T[], int, int, Func<TMatch, TResult>)

  • Declared in: RT.Generexes.GenerexBase<T, TMatch, TGenerex, TGenerexMatch>

Declaration

protected TResult matchExact<TResult>(
    T[] input,
    int mustStartAt,
    int mustEndAt,
    Func<TMatch, TResult> selector
)

Summary

Returns a single match that starts and ends at the specified indexes within the input array.

Generic type parameters

TResult Type of the result object associated with each match of the regular expression.

Parameters

T[]input Input sequence to match the regular expression against.
intmustStartAt Index within input at which the match must start.
intmustEndAt Index within input at which the match must end.
Func<TMatch, TResult>selector Delegate that transforms the match (if found) into a result object.

Returns

The result object returned by selector if a match was found; default(TResult) otherwise.