and those that exclude 'tex' anywhere after 'exceptions:'.
You can achieve that easily with adding .* (or maybe (?s:.)* before the tex, so either (?!.*tex) or /exception:/g && !/\G.*tex/s (after which you have to reset pos, as explained in my reply below).
In reply to Re^3: strange behavior of grep with global match
by moritz
in thread strange behavior of grep with global match [resolved]
by ig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |