What I am looking to do is parse a string, looking for certain words, and if they are in a url, then ignore them, and if they are not a url, to turn them into one.
example:
if the word is test...
<a href="index.php">test</a> //This would get ignored.
test // This would get turned into a link, link <a href="glossary.php?term=test">test</a>