[!--quoteo(post=385295:date=Jun 18 2006, 05:27 PM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Jun 18 2006, 05:27 PM) [snapback]385295[/snapback][/div][div class=\'quotemain\'][!--quotec--] You may want to use regex: [code]preg_match('/<img src="someimage.jpg">(.*?)<div id="something">/', $string, $matches); echo '<pre>'; print_r($matches); echo '</pre>';[/code] [/quote] Thx alot, but it doesn't go with my code. Could you write that with the connection to the site? I get an error: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] Warning: preg_match() [function.preg-match]: Unknown modifier 't' in ...*.php on line 5 Array ( ) [/quote]