Yeah, that's because I misjudged the quantifiers greediness, I think. I might try to find a working regexp tomorrow, as it's currently really damn late here.
Until then, remember
that tutorial I keep going on about? Go read it. Seriously. It's worth it.