I would give a try to :
$("pre").filter(function(){ return $(this).text().indexOf('=======') != -1 });
Preventing spaces to get in between equal signs
$("pre").filter(function(){
return $(this).text().replace(/=\s+/g,'=').indexOf('=======') != -1
}
);
Still not lightweight though