So - use your pattern, and negate the match.Binary "!~" is just like "=~" except the return value is negated in th +e logical sense.
Try this pattern:
or better, Regexp::Common::net provides built-in regex matching for mac addresses.!~/(:?[\da-f]{2}:){5}[\da-f]{2}/
Clarity: it's like that one thing that is not the other thing, except for when it is.
In reply to Re: remove lines that do not match search pattern
by NetWallah
in thread remove lines that do not match search pattern
by jasonwolf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |