Not really. At the moment you contain all the HTML of the page in $contents so its only a string. explode will work however it will only seperate the header from the rest of the content.
From what ive seen of source code you could probably use regex on the entire string to find two sections. Take a look at how the page is commented using the HTML comment tags
<!-- Start of Main Page --> and the next one that I think may work is
<!-- End of Main Table -->
From here it wont be easy, and I dont have anything that would do it at this time. Ive also noticed that if you do, do it you will loose the layout as its using classes as well as tables. so you could check for the css file which there is one
http://movies.yahoo.com/mvc/mvcBaseStyles.css
To use to style it.