Does anyone have any good c# code (and regular expressions) that will parse a string and \"linkify\" any urls that may be in the string?
This works for me:
str = Regex.Replace(str, @"((http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?)", "<a target='_blank' href='$1'>$1</a>");