Joerg Fischer wrote: > What you describe happens by matching in _backward_ direction. Try to search > in forward direction ... Sorry, I should test first then answer. No, you're right. There seems to be a problem of how the next match is found after a replacement. \s+$ works as expected. (Direction doesn't matter with "Replace all in Window".) --Jörg