Abort quickly if the only match is class= in a file