Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: T[] ReplaceRaw(T[], Func<TResult, IEnumerable<T>>, int, int?)

Declaration

public T[] ReplaceRaw(
    T[] input,
    Func<TResult, IEnumerable<T>> replaceWithRaw,
    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.

Parameters

T[]input Input sequence to match the regular expression against.
Func<TResult, IEnumerable<T>>replaceWithRaw Selector which, given the result of a match, returns the replacement.
intstartAt 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.