in reply to Re^2: strange behavior of grep with global match
in thread strange behavior of grep with global match [resolved]
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).
|
|---|