Streaming editor toolkit for modifying files with multiline regular expression matches