I want to load content of a specific div with class='box' from a webpage, and I used Simple HTML DOM for this. but I can’t write a clear pattern for preg_match, here is my php code:
<?php
$url = "http://www.example.com/pages/";
$page_all = file_get_contents($url);
preg_match(...?);
echo "<pre>";
print_r($div_array[0]);
echo "</pre>";
?>
Please help me to write a right pattern for preg_match
SimpleHtmlDOM :