I have a log file with the string "ERROR" on some lines. I want to delete every line that doesn't have ERROR so that I can see just what needs fixing. I was going to do something like the following in vim:
%s/!(ERROR)//
to replace non-error lines with an empty string.
I do not believe that standard regexes can do this, but maybe I'm wrong...