首页 新闻 会员 周边 捐助

asp 正则的问题

0
悬赏园豆:5 [待解决问题]

<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

依人的主页 依人 | 初学一级 | 园豆:14
提问于:2015-10-27 15:39
< >
分享
所有回答(1)
0

不懂帮顶!

Firen | 园豆:5385 (大侠五级) | 2015-10-28 19:30
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册