I saw this first time round and expected one of the ereg experts to get back to you.
They didn't so here I am!
My first comment is why do you store html rather than jus the file name and path and build the html later, that would be more versatile.
Anyway you're not...
$img = "<a href='images.php?File=/Jazz/Vintage/tigereyepin.jpg'>
<img src='/Jazz/Vintage/tigereyepin.jpg' border='0' align='left' height='100' width='100'></a>";
$startPos = strpos("?", $img);
$endPos = strpos("'>", $img);
$fileName = substr($img, $startPos, $endPos);
echo $fileName;
I typed this in cold so check my syntax, that I have the parameters in strpos() round the right way etc.