This can be done with a look-ahead assertion which allows you to express something like "that is followed by", or "that is not followed by". /redhat-release(?!-note)/ should do what you want.
In reply to Re: match exclude
by Eily
in thread match exclude
by emjga1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |