I need a regexp I can use with PHP’s preg_match_all() to match out content inside div-tags. The divs look like this: I’ve come up with this regexp so far which matches out all divs with id=”t[number]” The problem is when the content consists of more divs, nested divs like this: Any ideas on how I make my regexp work with