摘要: 整理两个 在C#中,用正则表达式 获取网页源代码标签的属性或值的方法 :1、获取标签中的值: CSDN 结果:CSDN/// /// 获取字符中指定标签的值 /// /// 字符串 /// 标签 /// 值 public static string GetTitleContent(string str, string title) { string tmpStr = string.Format("]*?>(?[^", title, title); //获取之间内容 Match TitleMatch = Regex.Match(str, tmpStr, Re... 阅读全文
posted @ 2013-08-04 21:11 VipSoft 阅读(16324) 评论(1) 推荐(1)