Hi all, a question about python regular expression.
I would like to match a div block like
<div class="leftTail"><ul class="hotnews">any news stuff</ul></div>
I was thinking a pattern like
p = re.compile(r'<div\s+class=\"leftTail\">[^(div)]+</div>')
but it seems not working properly
another pattern
p = re.compile(r'<div\s+class=\"leftTail\">[\W|\w]+</div>')
i got much more than i think, it gets all the stuff until the last tag in the file.
Thanks for any help