title: extract div tags inside div
body: <p>i want to extract div tags inside div ...</p>
  
  <p>The post.php file:</p>
  
  <pre><code>&lt;body&gt;
  &lt;div class="home"&gt;
  
  &lt;div id="post_message_14674248"&gt;Content number 14674248&lt;/div&gt;
  &lt;div id="post_message_14674255"&gt;Content number 14674255&lt;/div&gt;
  &lt;div id="post_message_14674278"&gt;Content number 14674278&lt;/div&gt;
  &lt;div id="post_message_14674279"&gt;Content number 14674279&lt;/div&gt;
  &lt;div id="post_message_14674283"&gt;Content number 14674283&lt;/div&gt;
  &lt;div id="post_message_14674290"&gt;Content number 14674290&lt;/div&gt;
  .
  .
  .
  .
  &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>The extract.php file :</p>
  
  <pre><code>&lt;?php 
  $html = file_get_contents("post.php");
     $pattern = "/(&lt;div id=\"post_message_)(.*)(&lt;\/div&gt;)/";
     preg_match_all($pattern, $html, $matches);
     print_r($matches);
  
  ?&gt;
  </code></pre>
  
  <p>but it give me an empty array :</p>
  
  <pre><code>Array ( [0] =&gt; Array ( ) [1] =&gt; Array ( ) [2] =&gt; Array ( ) [3] =&gt; Array ( ) ) 
  </code></pre>
  
  <p>and i want it like this:</p>
  
  <pre><code>Content number 14674248
  Content number 14674255
  Content number 14674278
  Content number 14674279
  Content number 14674283
  Content number 14674290
  </code></pre>
  
  <p>any help ?</p>