I've found this code already for dealing with content between tags
$content_processed = preg_replace_callback(  
'#\<pre\>(.+?)\<\/pre\>#s',   create_function(
    '$matches',
     'return "<pre>".htmlentities($matches[1])."</pre>";'   ),   $content );
but how could I get it to just get a section of the HTML. The bit I'm looking at starts with;
click here</a></p><p><span class='title'>Soups<br />
and ends at
 <div style='font-size:0.8em;'>
(The parts I've chosen are quite long because that way they are unique in the HTML.)
 
    