. . . "My current solution is to run HtmlEncode() on the string, do the RegEx.Replace(), and run HtmlDecode on the HREF. This works for 99% of the cases, but theoreticly there is a possibility that a valid link contains HTML encoded parameters, which should not be decoded." .