Hi Anrew, modified as per your clarification:
Input: "This is so Good $AAAA & $BBBB"
Output: This is So Good
AAAA and
AABB
Regex reg = new Regex(@"\$[A-Z]*");
string input = "This is So Good $AAAA and $AABB";
string hyperlink;
string value;
string output = input;
foreach (var item in reg.Matches(input))
{
value = item.ToString().Remove(0,1);
hyperlink = string.Format("<a href='http://webname/name.aspx?name={0}'>{0}</a>", value);
output = output.Replace(item.ToString(), hyperlink);
}
Console.WriteLine(output);