$var = "text<img src='/img/tag1.gif' alt='' />
text text text text text <i>-blah-blah-blah-blah-blah-blah</i>
<img src='/img/tag2.gif' alt='' />
<img src='/img/myhome.gif' alt='' />
<b>text</b> text text blah-blah-blah-blah-blah-blah-blah-blah
<img src='/img/age.gif' alt='' />";
$var = preg_replace('/(<img(.+?)>)/i', '', $var);
echo $var;
How do I in this text replace all text content except IMG tags?