rendered paste body<?php $source = '<table BORDER="0" CELLPADDING="5" width="580" ><tr><td height="194"><h3><font face="arial"> Latest METAR Observation(s) for: LFQQ</font></h3><font face="arial"><H3>LFQQ</H3><P>The most recent METAR observation from <B>LFQQ</B> 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">LFQQ 222030Z 08007KT CAVOK 17/11 Q1010 NOSIG</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, $out); $nb = count($out[0]); for($i=0;$i<$nb;$i++) { echo $out[0][$i]."\n"; }?>