I have a .htm file with the usual html tags and a single table in the body.
I want to include it into another .htm file that is being built with perl but I need to strip out everything but the table when I include it into the new .htm file to be built, so that I dont end up with multiple occurrences of the html head and body tags.
My question is would it be best done using various regex`s to strip the tags (bearing in mind that the body tag has some attributes and I would also want to lose the text inbetween the title tag) or is there a regex way to strip out anything between and including two special tags I can include in the page for this purpose?
Thanks for any help.
chmod
I want to include it into another .htm file that is being built with perl but I need to strip out everything but the table when I include it into the new .htm file to be built, so that I dont end up with multiple occurrences of the html head and body tags.
My question is would it be best done using various regex`s to strip the tags (bearing in mind that the body tag has some attributes and I would also want to lose the text inbetween the title tag) or is there a regex way to strip out anything between and including two special tags I can include in the page for this purpose?
Thanks for any help.
chmod