求个正则 求个正则,把:<img style="1167px;" src="AD\0a8a37363b16dfe6a2cc2b1d.jpg" width="200" height="150" />换成:<img style="1167px;" src="AD\0a8a37363b16dfe6a2cc2b1d.jpg"/>正则 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 string input = "<img style=\"1167px;\" src=\"AD\\0a8a37363b16dfe6a2cc2b1d.jpg\" width=\"200\" height=\"150\" />"; string t = System.Text.RegularExpressions.Regex.Replace(input,@"width=""[^""]*""\s*height=""[^""]*""","");是不是这样? str=Regex.Replace(str,@"(?is)(<img style="".*?"" src"".*?"").*?(/>)","$1 $3"); str=Regex.Replace(str,@"(?is)(<img style="".*?"" src="".*?"").*?(/>)","$1 $3"); System.Threading.Timer 用Dotfuscator混淆强名称的winform出错 数据库报表跟水晶报表是一样的吗? 由于表 'AAA' 正被别的用户或进程使用,数据库引擎无法锁定它。 有用过Nsis打包工具的进来看一下! 如何在两个窗体之间共享DataSet .aspx页面的<DIV>为什么只有竖滚动条,没有横滚动条呀! foreach循环的内部好像不能给迭代的对象赋值啊,为什么? C#读 Xml文档,用ds.ReadXml(),怎么会产生两个表啊! 快帮帮我,一个超级简单的问题! 下拉列表用(&X)设置快捷键 Dictionary字典值排序问题求指教
string input = "<img style=\"1167px;\" src=\"AD\\0a8a37363b16dfe6a2cc2b1d.jpg\" width=\"200\" height=\"150\" />";
string t = System.Text.RegularExpressions.Regex.Replace(input,@"width=""[^""]*""\s*height=""[^""]*""","");
是不是这样?