I have index.html
<html>
<head>
bla bla bla
</head>
<body class="someclass">
bla bla bla
</body>
</html>
I need get content inside body tag. Tried this
<?php $site = file_get_contents("index.html"); preg_match("/<body[^>]*>(.*?) \/body>/is", $site, $matches); print ($matches[1]); ?>
But it not output to anything. Please tell me problem here. Thank you.