...And the content between.
Well, without knowing any more all I can say is that a plain ereg or preg function won't be enough, because regular expressiosn are inherently not up to the task (mainly because you can't even count in them). So you'll be looking at some more extensive parsing than that.
Maybe there's code for this already on this site, or at Zend, or at PHPClasses. Maybe the XML functions might be able to help you a bit.
If there's no multiple nesting going on (like nested tables inside tables inside tables)
$test=preg_replace('#<tag.?>.?</tag>#is','',$text); will be a start, but I can think of all too many cases where that will fail.