正则表达式 <div id="title" style=" background-image:url(http://www.baidu.com/logo.jpg); "></div>正则表达式怎么提取http://www.baidu.com/logo.jpg 这个呢?求解,谢谢!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Regex rgx=new Regex(@"(?is)<div[^>]*style=""[^""]*background-image:url\(([^)]*)\)[^""]*"">")rgx.Match(str).Groups[1].Value string str = "<div id=\"title\" style=\" background-image:url(http://www.baidu.com/logo.jpg); \"></div>"; Regex rgx = new Regex(@"(?is)<div[^>]*style=""[^""]*background-image:url\(([^)]*)\)[^""]*"">"); Console.WriteLine(rgx.Match(str).Groups[1].Value); Console.ReadLine(); 来看看,网页被挂了东西 请帮忙找出错误原因 [求助]像51job那样的浏览自己简历的时候 打印到word 那个怎么做的 推荐实战的书 关于vs2003中智能感知的问题 我用FormsAuthentication为何返回不了值呢? 帮忙解释下这句语句! 关于上篇文章下篇文章的ID取得 DataGrid翻页问题!高手帮帮忙啊! 关于datagrid分页的问题 新手求助:用vs2010和SQL2008制作登陆、注册页面的具体步骤 web应用程序和网站中一般处理程序有区别吗
rgx.Match(str).Groups[1].Value
Regex rgx = new Regex(@"(?is)<div[^>]*style=""[^""]*background-image:url\(([^)]*)\)[^""]*"">");
Console.WriteLine(rgx.Match(str).Groups[1].Value);
Console.ReadLine();