إذا كنت تريد استخدام PHP فاستخدم دوال التعابير القياسية، اقرأ حول طريقة الاستخدام هنا:http://www.php.net/manual/en/ref.pcre.php
مثال:
كود PHP:
$junk_html = '
<table><tr>
<td><a href="http://www.swalif.net">swalif</a></td>
</tr>
<tr>
<td><a href="http://www.islamway.com">islam way</a></td>
</tr>
</table>
';
preg_match_all("/<td><a href=\"(.+)\">(.+)<\/a><\/td>/Ui", $junk_html, $matches);
printr_r($matches);
__________________
visualmind (at) php.net
أعتذر كثيراً عن غيابي من المشاركات والذي لن يطول أكثر إن شاء الله.