hide-lines.el hides lines that either match or don't match a regexp. It does not alter a buffer's content.