I have a string something like:
"Yahoo is a good website. Visit their website <a href=http://www.yahoo.com>Yahoo.com</a>"
Second thing, I have 2 arrays, $search and $replace. What I would like to do is replace all occurances of $search[$i] with $replace[$i] in said string, but I don't want to replace anything between the <a and </a> html blocks.
This doesn't sound very clear, but I'm not really sure how i can word it, I hope somebody knows what I mean and can help me, cause I'm stuck.