Replace(input, replaceWith, startAt, maxReplace) Replace(input, replaceWith, startAt, maxReplace) ThenExpect(exceptionGenerator, comparer, elements) ThenExpect(exceptionGenerator, comparer, elements) Throw(exceptionGenerator)
Legend Class Struct Enum Interface Delegate | Constructor Method Property Event Field |
| Method: IEnumerable<TResult> matches<TResult>(T[], int, Func<int, TMatch, TResult>, bool)- Declared in: RT.Generexes.GenerexBase<T, TMatch, TGenerex, TGenerexMatch>
Declarationprotected IEnumerable<TResult> matches<TResult>(
T[] input,
int startAt,
Func<int, TMatch, TResult> selector,
bool backward
) Summary
Returns a sequence of non-overlapping regular expression matches, optionally starting the search at the
specified index. Generic type parametersTResult |
Type of the result object associated with each match of the regular expression. |
ParametersT[] | input |
Input sequence to match the regular expression against. | int | startAt |
Index at which to start the search. Depending on backward, the matching behaviour is like
that of GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.Matches(T[], int) or GenerexBase<T, TMatch, TGenerex, TGenerexMatch>.MatchesReverse(T[], int?). | Func<int, TMatch, TResult> | selector |
A delegate that processes each match into a result object. | bool | backward | true to perform a reverse match (starting from the end of the array and going backwards); false
to match forward. |
Returns
The set of result objects generated by selector for each match. |