Interesting observation - do you often see body tags enclosed in comments? You are assuming the poster doesn't want body tags enclosed in comments. ;) In any case, I think this pattern is better (added ^):
my $body = $the_html_string;
$body =~ s/^.*?(<body.*?>)/$1/sgi;