If I have say 20 HTML pages and I want to extract out the shared/similar portions of the documents, what are some efficient ways to do that?
So say for StackOverflow, comparing 10 pages I'd find that the top bar and the main menu bar are the same across each page, so I could extract them out.
It seems like I'd need either a diff program or some complex regexps, but assume I don't have any knowledge of the page/text/html structure beforehand.
Is this possible?