Yes, that is correct. I want replace all occurance except that that are already encased in <a> or tags.
As an example, it behaves in this way right now:
A user makes a post that has this in it:
MCSA/MCSE Self-Paced Training Kit (Exams 70-292 and 70-296): Upgrading Your Certification to...
I'm trying to use the preg_replace command to do replacements of specific strings with the string as a URL.
An example from what I am using:
$post['message'] = preg_replace('/(70-292)/i', '<a href="http://www.mcseworld.com/a/1932266569/" target="_blank">\\1</a>'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.