> Not sure if I understand you correct but
> the way you wrote your replace pattern the result should be
> <news></news>.
> If you want just the file to be replaced you have to use something like
> preg_replace("|<item>.*?($file).*?</item>|si",'\\1',$contents)
>

no, i want just the whole <item></item> replaced for that particular file.
the pattern i wrote shouldn't... doesn't touch the <news> section at all.

wouldn't the pattern you wrote replace the whole <item></item> with the file
tho?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to