In general, you need a smarter isp. As far as a fix, Stephen is
on the right track, as negative regex's get pretty hairy. That is
if you just wanted to allow <b>, you could probably say
$var = eregi_replace('(<[b][>]>)|(</[b][>]>)', '', $var);
but once you start adding more alternatives it gets out of hand.