اتمنى تفيدوني بالخطا اخواني هنا :con2: نظرا لديق خبرتي في الدالة preg_replaceكود PHP:
$string = 'www.web.com/dir_name/t5721.html';
$string = preg_replace("/\www.web.com/\(.*?)/\page.html/i","Your Dir Is : $1", $string);
كود PHP:
Warning: preg_replace() [function.preg-replace]: Unknown modifier '\' in c:\camel\www\preg.php on line 42