In Emacs how can I easily copy all lines matching a particular regex? Preferably highlighting the matching lines as I type.
occur gets partway there by
occur
You can install package all. Then M-x all lets you edit all the lines in the buffer matching a regexp. Instead of editing, you can just copy them too.
all
M-x all