All done,
I'm quite surprised that I solved this before all you gurus, but I'm glad it is done. Here is my solution for those interested in doing something similar.
$html = ereg_replace("page.php\?table=","", $html);
$html = ereg_replace("id=([0-9]{1,2})", "\\0.htm", $html);
$html = ereg_replace("&id=","", $html);
I dropped the page and table like Mytch suggested, but I didn't drop the id= part until I ran a replace on that because it was necessary for identification. The page id sitting by itself is just a number and you can't search on that. But once I matched that and figured out the syntax to tell it that there would be one or two numbers following it, then I could attach the .htm. And from there, the last part to drop wsa the &id= bit.
/mark