Page 1 of 1

Advanced HTML tag regex - HELP!

Posted: Sat Jul 10, 2010 12:35 pm
by FINIF
Here's the HTML of the page I am going to be parsing and I'll try to explain what I need.

< a bunch of html above>
<span class="datetime">February 26, 2010</span> </div>

<p>ARTICLE TEXT HERE</p>

</div><! -- ./ end of article bd -->


So pretty much I need the ARTICLE TEXT.

I'm not very good with regex's but here is what I came up with : still getting errors so I thought I'd ask for some help:

(?<=\<span.*?\<\/div\>)\.*?(?=\/end\s+of\s+article)

Any suggestions?