将输入字符串的http://www.sina.com.cn 的样式换成 URL:
Regex.Replace(strContent, @"(http:\/\/([\w.]+\/?)\S*)", "<a href=\"${1}\" target=\"_blank\">${1}</a>");
EXCEL中将单元格设置为文本:Range.NumberFormatLocal = "@"(@表示把格子设置成文本)
Regex.Replace(strContent, @"(http:\/\/([\w.]+\/?)\S*)", "<a href=\"${1}\" target=\"_blank\">${1}</a>");
EXCEL中将单元格设置为文本:Range.NumberFormatLocal = "@"(@表示把格子设置成文本)