I'm currently working on a ASP.NET project where i want to replace sertain words with a link ex. "all your base are belong to us, is a cool phrase" if I want to replace the letter a as in "a cool phrase" with <a href="/#mylink">a</a> i want the new string to look like this, "all your base are belong to us, is <a href="/#mylink">a</a> cool phrase".
This means that if the word or letter is a part of a longer word, the letter or word shouldn't be relpaced ex. "all" this a shouldn't be replaced and allso if the letter a allready is lagged up as a link ex. "<a href="/#mylink">a</a>", it shouldn't be replaced either and not if its in the href attribute ex href="a".
I've been searching this forum for two days now without result unfortunalty, i've found a varity of regex that does allmost the thing i need.
Please can someone help me with this.