hi There,
Actually i am working on a project where there r about 30 news on the index page.
i want to change each news and its relative pic dynamically.


//the target string
<img src="images/zardari.jpg" alt="" border="0" align="left">
<a href="news/eng1.html"><strong>
Asif asks US to end Afghan infiltration

//i need a pattern

<img src="images/$news_pic.jpg" alt="" border="0" align="left">
<a href="news/$news_no.html"><strong>

preg_replace($pattern, $replacement, $string)