<ul data-dynamicbind='{"cType":1,"menuId":228,"count":9,"length":30,"dateStyle":"mm.dd"}'>
<li data-tcms="repeat" id="{id}"><span>{ShowTime}</span><a class="tab_title" href='show.shtml?TypeID={ TypeID}&ID={ID }' title='{Title}' target='_blank'>{shortTitle}</a></li>
</ul>
我想用asp写个正则能把包含dynamicbind的都能找到,也就是能找到dynamicbind='{"cType":1,"menuId":228,"count":9,"length":30,"dateStyle":"mm.dd"}'>行.
还有能找到包含data-tcms="repeat"的也能找到,也就是<li data-tcms="repeat" id="{id}"><span>{ShowTime}</span><a class="tab_title" href='show.shtml?TypeID={ TypeID}&ID={ID }' title='{Title}' target='_blank'>{shortTitle}</a></li>。谢谢!
我这样写不对
Set re = New RegExp
re.Pattern = "<data-dynamicbind=*}"
re.Global = True
re.IgnoreCase = True
re.MultiLine = True
Set matches = re.Execute(oldFile)
for each dom in matches
response.Write(dom&"<br>")
next
不懂帮顶!