use proper sed-like syntax for corrections, including regexes, backreferences, and a few flags