in reply to HTML::TreeBuilder question

If I understand your question and data correctly, you may make that work well
... so long as you're very sure there won't be <hr /> inside something you wish to capture
... and, given that precondition, that you're very careful about the greediness (or non-greediness, in this case) of your regex.

Replies are listed 'Best First'.
Re^2: HTML::TreeBuilder question
by 2ge (Scribe) on Apr 27, 2005 at 21:46 UTC
    WW,

    thanks for a reply, I will try that tomorrow. But I think (and hope!) there will be no problem at all. My regexp is simple: /<h4>(.*?)<hr/gm;