1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <?
ob_start();
?>
<br> <font color="#cccccc">De la part de (Aleatoire)</font></td>
<td width="12"></td>
<td xwidth="326px" colspan="2" xbgcolor="#2A2A2A"><font color="#222222">debug: fid 18462a2eac19110 - 1.760 survive<br>org: 1313705/1166265 surv: 1297477/1151588</font>
<br> <font color="#cccccc">De la part de (Aleatoire2)</font></td>
<td width="12"></td>
<td xwidth="326px" colspan="2" xbgcolor="#2A2A2A"><font color="#222222">debug: fid 23462a2eac19110 - 2.460 survive<br>org: 2313705/2166265 surv: 2297477/2151588</font>
<?php
$sujet = ob_get_clean();
$masque1 = '`<font\scolor="\#cccccc">De la part de {1,2}([\w()\s]{0,50})</font></td>`m';
$masque2 = '`^<td xwidth="326px" colspan="2" xbgcolor="\#2A2A2A"><font color="\#222222">debug: fid ([0-9a-z]{1,35}) - ([\d\.]{1,12}) survive<br>org: ([0-9]{1,12})/([0-9]{1,12}) surv: ([0-9]{1,12})/([0-9]{1,12})<`m';
preg_match_all ( $masque1, $sujet, $matches[], PREG_SET_ORDER );
preg_match_all ( $masque2, $sujet, $matches[], PREG_SET_ORDER );
print_r( $matches );
?> |
Partager