in reply to Copying text between markers

perl -n -e 'print if /<!--TABLE -->/../<!--\/TABLE -->/' files
with the usual provisos about having nested tables.

--
Tommy
Too stupid to live.
Too stubborn to die.