I've the following content:
a1a foo bar buzz foo b2b bar buzz foo bar c3c buzz foo bar buzz d4d
where I can match all words consisting only alpha characters by the following pattern:
Now, how can I remove all words which doesn't match the pattern?
So the final content is:
foo bar buzz foo bar buzz foo bar buzz foo bar buzz
I've checked Search for lines not containing pattern page, but without luck.
To remove some words patching the pattern, global command can be used:
as per this post.
However when doing opposite:
there is this message:
Pattern found in every line