Get all between div tags
Posted: Wed Nov 15, 2006 2:23 pm
I am trying to get all of the html between 2 div tags but I am having some troubles. Here we goooooo:
Obviously what I am going for is between <div class="middleColumn"> and </div> but I get no results. Any help would be grand.
Code: Select all
preg_match('#<div class="middleColumn">(.*)<\/div>#m', $cont, $matches);
dump($matches);