Bonsoir,
Je souhaiterai récupérer les informations de cette chaine via l'expression régulière suivante :
J'ai cependant un petit soucis :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 $source = '<table BORDER="0" CELLPADDING="5" width="580" ><tr><td height="194"><h3><font face="arial"> Latest Observation(s)</font></h3><font face="arial"><H3>LFQQ</H3><P>The most recent observation in our system was generated at the source at:</P><P><FONT COLOR="#48D1CC"><B>2007/07/22 20:30 UTC</B></FONT></P><P>The observation is:</P></font><font face="courier" size = "5">XXXXXX YYYYYY ZZZZZZZZZZ</font><hr></FONT></TT></P></td></tr></table>'; $motif = '<P><FONT COLOR="#48D1CC"><B>(.*)</B></FONT></P>.*<font face="courier" size = "5">(.*)</font>'; preg_match_all($motif,$source,$sortie);
Merci,Warning: preg_match_all(): Unknown modifier '<' in C:\script.php on line 42
MaTHieU_
Partager