将输入字符串的http://www.sina.com.cn 的样式换成 URL:
Regex.Replace(strContent, @"(http:\/\/([\w.]+\/?)\S*)", "<a href=\"${1}\" target=\"_blank\">${1}</a>");

EXCEL中将单元格设置为文本:Range.NumberFormatLocal = "@"(@表示把格子设置成文本)
posted on 2006-04-28 18:30  mecn  阅读(648)  评论(1编辑  收藏  举报