日期:2014-05-19  浏览次数:20831 次

这个用“正则表达式”怎样表示
需要取中间的数据(只要中间的)用“正则表达式”怎样表示?

<div   class= "artibody "   id= "artibody ">


....


</div>

------解决方案--------------------
Regex reg = new Regex(@ "(? <= <div\s+class= " "artibody " "\s+id= " "artibody " "> )[\s\S]*?(?= </div> ) ");

------解决方案--------------------
那就这样

Regex reg = new Regex(@ " <div\s+class= " "artibody " "\s+id= " "artibody " "> [\s\S]*? </div> ");