2011年12月1日
摘要: Regex rx = new Regex(@"(\d+).\x20target...blank.\x20{1,5}style=.LINE-HEIGHT:150%.>", RegexOptions.Compiled | RegexOptions.IgnoreCase); MatchCollection _oMatchColl = rx.Matches(weatherhtml); string str = string.Empty; foreach (Match match in _oMatchColl) { GroupCollection groups = match. 阅读全文
posted @ 2011-12-01 09:50 张扬个性,敢为天下先 阅读(402) 评论(0) 推荐(0) 编辑
摘要: string weatherhtml = string.Empty; HttpWebRequest webrt = (HttpWebRequest)WebRequest.Create("http://www.fjqx.gov.cn"); HttpWebResponse webrs = (HttpWebResponse)webrt.GetResponse(); //读取数据 Stream stream = webrs.GetResponseStream(); StreamReader srm = new StreamReader(stream, System.Text.Enc 阅读全文
posted @ 2011-12-01 08:52 张扬个性,敢为天下先 阅读(551) 评论(0) 推荐(0) 编辑