Thank you all for the great help. The markers are not the only text on the line. For example one of the file has these lines:
"<\td class="health" height="99%"> <-- #BeginEditable "category" class="category" -->MEDICAL
{carriage return} BENEFITS</\td></\tr> <\tr valign="top"> <\td height="99%" class="mainbody"> "
(The extra slashes are to display the html code as is)
The beginning marker for this is <-- #BeginEditable "category" class="category" --> and the ending marker for this is <-- #EndEditable -->
i.e. I have to discard everthing after the beginning marker but not the marker or any thing before itself. I have to discard everything before the end marker but not the end marker or anything after that.
I think I will try figuring this out myself. If anybody can find some time to post the code, I would be greatful.
Thank You for the great help.