I trying do something like that for example:
<img src="/1.gif" />
<img src="/2.gif" />
<img src="/3.gif" />
<img src="/4.gif" />
<img src="/5.gif" />
And I want replace all lines contains IMG
with "---
" except first. I don't want delete it, just replace.
I tried doing this with preg_replace
but with no results.