Ver originalpreg_match_all("/<div id=\"contain\">([\w\W]+)<\/div>/", $text, $matches);print_r($matches);