title: preg_match get div content with class
body: <p>i have code like that</p>
  
  <pre><code>&lt;div class="x-ic test"&gt;&lt;div class="abc"&gt;Test&lt;/div&gt;&lt;table&gt;.......&lt;/table&gt;&lt;p&gt;....&lt;/p&gt;&lt;div style="margin:5px;"&gt;&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>i tried a few pattern but i didnt get result i want.</p>
  
  <p>and i need to get result below </p>
  
  <pre><code>&lt;div class="abc"&gt;Test&lt;/div&gt;&lt;table&gt;.......&lt;/table&gt;&lt;p&gt;....&lt;/p&gt;&lt;div style="margin:5px;"&gt;&lt;/div&gt;
  </code></pre>