Forum Moderators: coopster
if(!eregi("^<[^>]*>".$val."</[^>]*>$", $content)){}
Doesn't quite work.
If my text says this:
blah blah blah <a href="some place">web</a> blah blah blah blah
web blah blah
I want the second occurence to be surrounded with the new link pointing to the dynamically generated url but not add another link inside a link to the first occurence.