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: T[] ReplaceReverse(T[], IEnumerable<T>, int?, int?)- Declared in: RT.Generexes.GenerexBase<T, TMatch, TGenerex, TGenerexMatch>
Declarationpublic T[] ReplaceReverse(
T[] input,
IEnumerable<T> replaceWith,
int? endAt = null,
int? maxReplace = null
) Summary
Replaces each match of this regular expression within the given input sequence, matched from the end
backwards, with a replacement sequence. ParametersT[] | input |
Input sequence to match the regular expression against. | IEnumerable<T> | replaceWith |
The sequence to replace each match with. | int? | endAt |
Optional index at which to begin the reverse search. Matches that end at or after this index are not included. | int? | maxReplace |
Optional maximum number of replacements to make (null for infinite). |
Returns
The resulting sequence containing the replacements. |