Get HTML after a certain tag
<p>I've been doing some data scraping and I'm trying to get specific divs that appear after anchor tags. I've tried to use regular expressions with no success and apparently parsing HTML with regular expressions isn't a good idea (if someone could enlighten me). I also tried to use Xpath with no success.</p>

<p>So here's my structure:</p>

<pre><code> &lt;a name="event_{id}"&gt;&lt;/a&gt; // where {id} is an integer
 &lt;div&gt;&lt;/div&gt;
 &lt;a name="event_{id}"&gt;
 &lt;div&gt;&lt;/div&gt;
 // And so on
</code></pre>

<p>What I'm trying to do is get the div between each anchor tag into an array.</p>

<p>Thanks!</p>
