It would probably be much easier to write that table into a file of it's own and include it. That way, you could just do an fwrite() to modify it and not have to worry about parsing the whole file to pull out only the part you need.
Put this in a file called include.txt or whatever.
<table>
<tr>
<td>
some content
</td>
</tr>
</table>
Then do this ...
<html>
<head>
<title>My Page</title>
</head>
<body>
<!-- Edit Below this line -->
<?php
include 'include.txt';
?>
<!-- Edit Above this line -->
</body>
</html>
Then, make a script that includes the include file into a textarea and when you submit it, fwrite() the new text to the file.
Hope this makes sense.