正则匹配问题
string kk = " ";
kk += "\n <div> <div class=\ "left text\ "> 我123明a白了\n ";
kk += "\n\n ";
kk += " </div> \n ";
kk += " </div> \n ";
kk = Regex.Replace(kk, " <div class=\ "left text\ "> (.+?) </div> ", "$1 ", RegexOptions.IgnoreCase);
匹配不了..
高手来....
------解决方案--------------------是的
另外,如果按你的写法,再加个参数也可以
kk = Regex.Replace(kk, " <div class=\ "left text\ "> (.+?) </div> ", "$1 ", RegexOptions.IgnoreCase | RegexOptions.Singleline);