Well preg match will do the job. Try the following:
<?
preg_match_all('/\<object(.*)\<\/object\>/is',$page_contents,$tmp);
$matches=$tmp[0]; unset($tmp);
//display the first one on the page
echo $matches[0];
?>
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259