110,538
社区成员
发帖
与我相关
我的任务
分享
str=Regex.Replace(str,@"(?is)(<img style="".*?"" src="".*?"").*?(/>)","$1 $3");
str=Regex.Replace(str,@"(?is)(<img style="".*?"" src"".*?"").*?(/>)","$1 $3");
string input = "<img style=\"1167px;\" src=\"AD\\0a8a37363b16dfe6a2cc2b1d.jpg\" width=\"200\" height=\"150\" />";
string t = System.Text.RegularExpressions.Regex.Replace(input,@"width=""[^""]*""\s*height=""[^""]*""","");
是不是这样?