par
damien_55 » 13 juil. 2013, 22:18
Bonjour a tous,
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>
J'ai essayé différentes chose comme:
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);
Mais rien ne fonctionne quelqu'un aurait une idée ? Merci
Bonjour a tous,
Je n'arrive pas a parser un contenu dans une div tel que
[code]<div class="plainlinks bandeau-niveau-ebauche bandeau js-no-interprojets">....<div>[/code]
J'ai essayé différentes chose comme:
[code]//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);[/code]
Mais rien ne fonctionne quelqu'un aurait une idée ? Merci