Prawie idealnie,
Kod
#<t[dh].*?class="HomeNews(Body|Headline|Date).*?>(.*?)</t[dh]>#s
Aktualny wynik (testuje na:
http://scriptun.com/php/online/preg_match_all)<?php
// result value:
$result = 3;
// matches array:
0 =>
0 => '<th class="HomeNewsHeadline" style="width: 238px">........jaki¶ tytuł</th>',
1 => '<th class="HomeNewsDate" style="width: 150px;">...jaka¶ data....</th>',
2 => '<th class="HomeNewsExpander">-</th>
</tr>
<tr style="">
<td colspan="4" class="HomeNewsBody">jaki¶....<br/>
Content...</td>',
),
1 =>
0 => 'Headline',
1 => 'Date',
2 => 'Body',
),
2 =>
0 => '........jaki¶ tytuł',
1 => '...jaka¶ data....',
2 => 'jaki¶....<br/>
Content...',
),
)
?>
Da się jako¶ poprawić żeby złapało tylko drug± tablicę?
0 => '........jaki¶ tytuł',
1 => '...jaka¶ data....',
2 => 'jaki¶....<br/>
Content...')