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