preg_match div class=
Posté : 13 juil. 2013, 22:18
Bonjour a tous,
Je n'arrive pas a parser un contenu dans une div tel que
J'ai essayé différentes chose comme:
Mais rien ne fonctionne quelqu'un aurait une idée ? Merci
Je n'arrive pas a parser un contenu dans une div tel que
Code : Tout sélectionner
<div class="plainlinks bandeau-niveau-ebauche bandeau js-no-interprojets">....<div>Code : Tout sélectionner
//preg_match('#<div class="plainlinks bandeau-niveau-ebauche bandeau js-no-interprojets">(.*?)</div>#ms', $http_page, $ebauche);
//preg_match_all('/<div class=\"plainlinks bandeau-niveau-ebauche bandeau js-no-interprojets">(.*?)<\/div>/s',$http_page,$ebauche);
//preg_match('|<div class="plainlinks bandeau\-niveau\-ebauche bandeau js\-no\-interprojets">(.*)</div>|', $http_page,$ebauche);
preg_match('#<div class=\"plainlinks bandeau\-niveau\-ebauche bandeau js\-no\-interprojets\">(.*?)<\/div>#ms', $http_page, $ebauche);