JavaScript replaceLast function - Replaces last match for pattern in string with replacement
A term-replace function-factory actor
A plugin that supports batch string replacement for gulp. Replacement rules support regular expressions and function replacements
This function replaces items in the middle of the array