http://dev.csdn.net/develop/article/17/article/17/article/17/article/17/article/17/article/17/17735.shtm没学好,希望你能学好啊。
给点间接的建议吧
给点间接的建议吧
解决方案 »
- winform的菜单在小分辨率下显示不全
- c# 操作带命名控件的xml文件
- 一个很奇怪的问题“类型“_Default”已定义一个名为“Page_Load”的具有相同参数类型的成员”
- 如何设置datagridview控件的行高度
- 泛型类型的问题,迷惑中.......
- 关于FTP Component的问题
- 在C#中如何实现子窗体,即像VB6中的MdiForm,子窗体嵌入在主窗体中。谢谢!
- ListView在手动重排列顺序后如何读取出来?
- 为什么 WinServer2003 上安装不到 SQL Server 2000(叫我用什么数据库啊)
- C# Professional这本书太滥了!没买的就不要去花冤枉钱了!!
- 如何取得客户端分辨率并写入数据库?
- 保存图像问题?
时候正则表达式的效率会很低下,那这种情况什么时候会发生?
2. 对于嵌套结构,正则表达式如何能够处理.比如:
<table>1
<table>11</table>
<table>12</table>
</table>
<table>2
</table>
如何能够用正则表达式分别把每一对<table>与</table>之中的内容提出来,可以分多步实现.
没有经验,请高手不吝赐教啊,谢谢啦.
>>如何能够用正则表达式分别把每一对<table>与</table>之中的内容提出来,可以分多步实参考
http://www.rassoc.com/gregr/weblog/archive.aspx?post=590
for a long time. This regular expression is powerful and it do solve my problem, but I still can't see how the "(?<DEPTH>)" and "(?<-DEPTH>)" works.For example,using the following regular expression: "(?:\<table[^>]*?\>)(?<table>(?>(?:\<table\>)(?<DEPTH>)|(?:\</table\>)(?<-DEPTH>)|.)+)(?(DEPTH)(?!))(?:\</table\>)"
If the input is : <table>0</table>
The result match is: <table>0</table>
If the input is : <table>0</table></table>
The result match is: <table>0</table></table> If the input is : <table>0</table></table></table>
The result match is: <table>0</table></table></table> in fact,no matter how many "</table>" between "<table>" and the last "</table>",the expression can always match string between the first "<table>" and the corresponding last "</table>". I have searched the web for a long time,there's little saying about this. Can you help me? Thanks a lot,:).
If the input is : <table>0</table>
The result match is: <table>0</table>
If the input is : <table>0</table></table>
The result match is: <table>0</table></table> If the input is : <table>0</table></table></table>
The result match is: <table>0</table></table></table> in fact,no matter how many "</table>" between "<table>" and the last "</table>",the expression can always match string between the first "<table>" and the corresponding last "</table>". I have searched the web for a long time,there's little saying about this. Can you help me? Thanks a lot,:).
2.依靠mshtml组件,感觉稳定性很不错,但效率还是不高,尤其是特消耗CPU,此外访问某些网页还会弹出对话框
3.完全用string的insert,replace等操作,效率还是不高,而且稳定性也需要测试我的目的很单一,就是分析网页中的表格,忽略其他网页元素,最难解决的就是表格的嵌套,由于经验少,时间短,一时还没想出一个合适的解决方案,请问能否给提示一下,一般这方面的问题是如何解决的,感激不尽!
http://www.eggheadcafe.com/articles/20030317.asphttp://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=b90fddce-e60d-43f8-a5c4-c3bd760564bcrelatively, it is easier to work with XML