Let's say I have a paragraph of text.
"This forum is phpfreaks.com and the person posting this message goes by the Username of ibzi. This is just a paragraph to show an example to the fellow helpers."
Now lets say I want to replace all the occurence of the word "and" regardless about the case. It can be And or AND or aND etc.
How would i do this? I want to replace it with something like:
and >>>>>> <a target="_blank" href="search.php?q=and">and</a>
I tried preg_match but I dont know how to use the function, i constantly get wrong result near the "_blank".
Please help.. it will be appreciated.