Improved regexes for multiline corrections