Minimal sed-like tool for text replacements using JS regex syntax