Ok soz, heres expression:
preg_match('/(<table cellspacing="0" cellpadding="0" class="shotbg">.*<\/table>)/i', $itemstat, $matches);
At the time this is called $itemstat has been created like this:
$itemstat = fgets($fp, 128); //This bit works, so don't need to expand.
$itemstat = str_replace ( "\n", "", $itemstat); //Trying to remove lines
$itemstat = str_replace ( "\r", "", $itemstat); // Ditto
It still doesn't seem to find a match. $matches[1] is empty after calling. 🙁