in reply to Re^3: Immediately writing the results of search-and-replacein thread Immediately writing the results of search-and-replace