我想把第一个TABLE和table里的内容都替换成空,如何来写。 代码在下面
第一个TABLE
<table id="EspeciallyPro1_dtList" ....(样式)>....(内容)<table>
第二个TABLE
<table>....(内容)<table>现在我想找出第一个TABLE ,然后把TABLE和TABLE内容替换成空。谢谢
第一个TABLE
<table id="EspeciallyPro1_dtList" ....(样式)>....(内容)<table>
第二个TABLE
<table>....(内容)<table>现在我想找出第一个TABLE ,然后把TABLE和TABLE内容替换成空。谢谢
解决方案 »
- 如何将DataRow中某一列转换成 sting数组???
- C#中XML问题
- net socket通信
- WebServer 端的程序,一个DLL文件。可不可以调试运行?
- 如何设置datagridview控件的行高度
- 如何判断指定的EXCEL文件已经打开,如果打开,如何保存关闭?
- 发送 EMail 的问题: 如何知道客户打开了这个 email
- 关于多线程求高手解答
- 旋转算法的请教
- 未处理的“System.NullReferenceException”类型的异常出现在 c1.win.c1flexgrid.dll??
- 关于System.Diagnostics.Process.Start()的问题
- 求字符串长度的算法
<table id="EspeciallyPro1_dtList" [\s|\S]*?<table>使用正则匹配到被替换的内容,在用替换的table替换即可
<table id="EspeciallyPro1_dtList" [\s|\S]*?</table>少了/
string result = reg.Replace(yourStr, "");
<asp:LinkButton ID="hlkShopping" Runat="server">
<img src="images/truelab_index_09.gif"></asp:LinkButton>
<asp:LinkButton ID="hlkCollection" Runat="server">
<img src="images/viewDetail.gif" height="21" width="46"></asp:LinkButton>
<asp:LinkButton ID="hlkPrice" Runat="server">
<img src="images/askPrice.gif" height="21" width="46"></asp:LinkButton>
</div>把这个DIV和DIV里的内容都替换成空怎么写
regex r=new regex(str);
match m=r.match("你的内容");
string unit=m.value.tostring();
//然后你可以replace掉,如果存在多个的话,就用matchcollection