Page is a not externally linkable
darkage - 2:33 pm on Dec 26, 2008 (gmt 0)
These words are between <p></p> tags. The word is identified by having a space in front of it and after it. I only want to replace the word with the link. This is what I have done so far (the test word is hello), but it doesn't work: Code: Thanks in advance.
I've got articles that contain certain words I'd like to replace with links.
$patterns[0] = "/<p>.+\s(hello)\s.+<\/p>/i";
$replacements[0] = "AAA"; // for testing
$pageContent = preg_replace($patterns, $replacements, $pageContent);