- May
- 13,802
- 211
I have lines like
And I want to filter them so I wind up with
How do I do that?
/replace with "extract" (all non-matching test is discarded) looks promising but I also have to tell it what to replace "KEYWORD.*" with and there doesn't seem to be a way to tell it to replace it with itself.
Code:
variable length unwanted stuff KEYWORD wanted stuff
Code:
KEYWORD wanted stuff
/replace with "extract" (all non-matching test is discarded) looks promising but I also have to tell it what to replace "KEYWORD.*" with and there doesn't seem to be a way to tell it to replace it with itself.