Time to quote myself:
Why do I insist in parsing HTML with regular expressions, despite warnings all over the place?
In reply to Re: capturing between divs by shmem in thread capturing between divs by sv123