|
|
|
|
|
для: pissed
(25.06.2008 в 00:21)
| |
<pre><?
preg_match_all('#^\s+<td[^>]*? class="ntitle">([^<]+).+?^\s+<td[^>]*? class="slink">\s*<a[^>]*? href="([^"]+)"#sm', $text, $text);
print_r($text[1]);
?>
<hr/>
<?
print_r($text[2]);
?></pre>
|
| |
|
|
|
|
|
|
|
для: pissed
(25.06.2008 в 00:05)
| |
reg_match_all('|<td height="16" align="left" class="ntitle">(.*)</td>.*<a href="(.*)"><b>Читать подробнее|isU',$res,$title);[
|
так работает но берет еще левые ссылки | |
|
|
|
|
|
|
| И снова чтото не так.
имеем
<td class="ntitle" align="left" height="16">Made Мan: Человек мафии</td>
........
<a href="http://gamefree.ru/games/1152-made-man.html"><b>Читать подробнее</b> (753)</a>
echo preg_match_all('|<td height="16" align="left" class="ntitle">(.*)</td>[^>]+<a href="(.*)"><b>Читать подробнее|isU',$res,$title);
|
В чем проблема? | |
|
|
|
|