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[] Replace(T[], Func<TGenerexMatch, IEnumerable<T>>, int, int?)- Declared in: RT.Generexes.GenerexBase<T, TMatch, TGenerex, TGenerexMatch>
Declarationpublic T[] Replace(
T[] input,
Func<TGenerexMatch, IEnumerable<T>> replaceWith,
int startAt = 0,
int? maxReplace = null
) Summary
Replaces each match of this regular expression within the given input sequence with the replacement sequence
returned by the given selector. ParametersT[] | input |
Input sequence to match the regular expression against. | Func<TGenerexMatch, IEnumerable<T>> | replaceWith |
Selector which, given a match within the input sequence, returns the replacement. | int | startAt |
Optional index within the input sequence at which to start matching. | int? | maxReplace |
Optional maximum number of replacements to make (null for infinite). |
Returns
The resulting sequence containing the replacements. |