遍历文本中所有的网址添加超链接
摘要:
public string maindomain(string url) { // [u4e00-u9fa5] 中文 ^\w+$ Regex regex = new Regex( // @"(((http|https):\/\/)?[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])+[A-Za-z0-9]+$?)", @"(((http|https):\/\/)?[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\ 阅读全文
posted @ 2012-09-11 14:05 缘来 阅读(274) 评论(0) 推荐(0)
浙公网安备 33010602011771号