关于正则表达式的问题,高手指点一下
本帖最后由 passkalilo 于 2009-4-25 18:48 编辑JHJHJHIUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUKJKJJJ
<dl class="list_content1">
<span></span>
KJKJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJ <span class="list_content_dtjs"><a href="/xiaofeika/09042516_2258382.htm" target="_blank"><font>
(<a class="Addr" href="/meirongka/0099.htm">海淀-美容卡</a>) </span>
</dt>
<dd class="list_content_sj"><b>800元</b></dd>
<dd class="list_content_time">04-25 16:42 </dd>
</dl>
<dl class="list_content1">
<dd class="list_content_mj"><a href="/xiaofeika/09042516_2258381.htm" target="_blank"><img style="visibility:hidden;"alt=" http://s2.ganji.com/tpl/img/nopic.__1228881869__.gif " /></a></dd>
以上是一段网页代码,我想通过正则表达式返回]两个<dl class="list_content1">语句之间的文字,不知道该怎么写,试了N种写法都无法实现,希望高手指点一下 试过下面这种写法,不知为什么无法返回?
$info = StringRegExp($sHTML,'\<*class=list_content1\>\w*\<*class=list_content1\>',1)
MsgBox(0,"match text",$info) 貌似已经解决了,呵呵
页:
[1]