我没听错。该应用程序正在运行.net 3.5。我发誓,没有适用于 3.5 的解析器。
我正在尝试获取一个表标签,它的 ID 中有一个关键字片段。
我尝试使用这个正则表达式
"<table.*ctl01.*>.*</table>"
一些清单:
<table class="Default_GridClass" cellspacing="0" rules="all" border="1" id="ctl00_ContentPlaceHolder1_CustomerByLocation_ViewPanelStandAlone_ViewPanel_Grid_ctl01">
此表标签位于其两个父表标签内。
实际上,父表的 ID 中不包含“ctl01”片段。但是,使用我的正则表达式,我得到了所有 3 个表而不是那个