http://www.perlmonks.org?node_id=786742


in reply to Re^2: strange behavior of grep with global match
in thread strange behavior of grep with global match [resolved]

I would be interested in solutions that exclude strings with 'tex' immediately after 'exception:'
/exception:(?:[^t]|t[^e]|te[^x])/