解决方案 »
- 从项目文件夹读出来的图片怎么分页显示出来啊,
- SqlDataSource1 内的SQL语句我不会使用LIKE!【谢谢各位大哥大姐】
- 在MVC中使用iframe引起的问题
- 高分求GridView分页问题(在线等)
- 怎样让动态添加的web控件保持不变?
- 有点不懂了!
- 请问如何设置,才能使componentone显示图像?
- 请高手推荐一些常用的Javascript函数(验证,前台后台数据交换等等)
- DataGrid能实现横向翻页吗?
- 请教各位大虾:请问如何把一整篇文章段落分明的显示在出来。
- 请教高手啊 报表问题 等啊
- 有人用过authorize.net这个美国第三方付费平台吗?求解DPM方式下如何取得返回值?谢谢
MatchCollection matches = Regex.Matches(s, @"(?is)<a href=""(?<href>[^""]+)"" class=""Info""[^>]*>(?<text>.+?)</a>");
foreach (Match match in matches)
{
Response.Write(match.Groups["href"].Value + "<br/>");
Response.Write(match.Groups["text"].Value + "<br/><br/>");
}
string str =@"你的Html源码";
MatchCollection matches = Regex.Matches(str, @"(?is)<a\b[^>]*?href=""(?<href>[^""]*?)""[^>]*?class=""Info""[^>]*?>(?<Content>.*?)</a>");
Dcitionary<string,string> dic=new Dcitionary<string,string>();
foreach (Match m in matches)
{
dic.Add(m.Groups["href"].Value ,m.Groups["Content"].Value);//dic就是你要的href和内容
}