Type Alias MatchReplacePairs

MatchReplacePairs: [string | RegExp, string][]

An array of match/replace pairs. These will be applied to the initial value like input.replace(p1, p2), applied in the order provided. The first parameter can be either a string or RegExp to match, and the second must be a string to insert. The normal str.replace $ placeholders can be used in the second argument, so that e.g. $1 will insert the 1st matched group.