Grab the content of a div,which is inside another div
<p>I am doing an application where I want to grab the content of div,which is inside a div.In my application I want to grab the content of <code>&lt;li&gt;&lt;/li&gt;,</code>which is inside <code>&lt;ul class="snippet-list"&gt;&lt;/ul&gt;</code>.The ul class is inside <code>&lt;div data-analyticsid="related"&gt;&lt;/div&gt;</code>.Is there any regular expression like preg_match to grab the data.</p>

<p>Thanks in advance...</p>
