Johny, как вариант
<script>
function Go() {
var re=/\d\d\d/
var o=document.getElementsByTagName('div')
var i
for (i=o.length; i>0; i--) {
if (o[i-1].className.search(re) !=-1) {
o[i-1].parentNode.removeChild(o[i-1])
}
}
}
</script>
<div class='div-123'>div-123</div>
<div class='test'>test1</div>
<div class='div-321'>div-321</div>
<div class='test'>test2</div>
<div class='div-123'>div-123</div>
<input type='button' value='Go' onclick='Go()' />