Capture lines that 'do not' ( !~ ) match your regex...
or
capture lines that are not excluded by unless =~ your regex
Or did you mean you want another way to write the regex (which should be enclosed by code tags for readability).
In reply to Re: remove lines that do not match search pattern
by ww
in thread remove lines that do not match search pattern
by jasonwolf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |