Options adjusting replacement behavior.

interface IReplaceOptions {
    preserveCase?: boolean;
    regularExpression?: boolean;
}

Properties

preserveCase?: boolean

Should the letter case be preserved?

regularExpression?: boolean

Did user request regular expressions?

This has impact on how $ is interpreted in replacement text.