<li gosrc="http://weibo.com/1821933091/xtt8ue6ld">
<dl>
<dd class="msg"><a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank"></a>
<span class="mbTxtB" >喜欢黄色很温暖的说<img src="http://img.t.sinajs.cn/t3/style/images/common/face/ext/normal/e5/sun.gif" title="太阳" />[转]竹里家居:你家的墙壁流行什么颜色呢?
</span></dd>
<dd>
<p class="wbLinkC"><a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank" >20分钟前</a></p>
<span class="act wbLinkB">
<a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank">转发(0)</a> <em>|</em>
<a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank">评论(0)</a>
</span>
</dd>
</dl>
</li><li gosrc="http://weibo.com/1821933091/xtt89yUnj">
<dl>
<dd class="msg"><a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank"></a>
<span class="mbTxtB" >【DIY香蕉牛奶面膜】1、熟香蕉一根,捣烂成泥状。2、加入少量牛奶搅拌均 匀。3、取适量面膜敷于面部,避开眼部和唇部肌肤。4、静待10分钟左右用清水洁面。此DIY面膜可达到美白嫩肤的功效,每周可以尝试1-2次。
</span></dd>
<dd>
<p class="wbLinkC"><a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank" >21分钟前</a></p>
<span class="act wbLinkB">
<a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank">转发(2)</a>
<em>|</em>
<a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank">评论(0)</a>
</span>
</dd>
</dl>
</li>
标签都是循环生产出来,但是我怎么通过正则<li gosrc="http://weibo.com/1821933091/ > </li>这点内容分别放入数组中!请教正则表达式!
$str = <<<ROT
<li gosrc="http://weibo.com/1821933091/xtt8ue6ld">
<dl>
<dd class="msg"><a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank"></a>
<span class="mbTxtB" >喜欢黄色很温暖的说<img src="http://img.t.sinajs.cn/t3/style/images/common/face/ext/normal/e5/sun.gif" title="太阳" />[转]竹里家居:你家的墙壁流行什么颜色呢?
</span></dd>
<dd>
<p class="wbLinkC"><a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank" >20分钟前</a></p>
<span class="act wbLinkB">
<a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank">转发(0)</a> <em>|</em>
<a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank">评论(0)</a>
</span>
</dd>
</dl>
</li>
<li gosrc="http://weibo.com/1821933091/xtt89yUnj">
<dl>
<dd class="msg"><a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank"></a>
<span class="mbTxtB" >【DIY香蕉牛奶面膜】1、熟香蕉一根,捣烂成泥状。2、加入少量牛奶搅拌均 匀。3、取适量面膜敷于面部,避开眼部和唇部肌肤。4、静待10分钟左右用清水洁面。此DIY面膜可达到美白嫩肤的功效,每周可以尝试1-2次。
</span></dd>
<dd>
<p class="wbLinkC"><a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank" >21分钟前</a></p>
<span class="act wbLinkB">
<a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank">转发(2)</a>
<em>|</em>
<a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank">评论(0)</a>
</span>
</dd>
</dl>
</li>
ROT;$patten = '/<li +gosrc *= *"[^"]*">(.*)<\/li>/isU';
//$patten = '/(<li +gosrc *= *"[^"]*">(.*)<\/li>)/isU';//整个部分放入数组
preg_match_all($patten,$str,$arr);
print_r($arr[1]);
<dl>
<dd class="msg"><a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank"></a>
<span class="mbTxtB" >喜欢黄色很温暖的说<img src="http://img.t.sinajs.cn/t3/style/images/common/face/ext/normal/e5/sun.gif" title="太阳" />[转]竹里家居:你家的墙壁流行什么颜色呢?
</span></dd>
<dd>
<p class="wbLinkC"><a href="http://wwwby52.net" target="_blank" >20分钟前</a></p>
<span class="act wbLinkB">
<a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank">转发(0)</a> <em>|</em>
<a href="http://weibo.com/1821933091/xtt8ue6ld" target="_blank">评论(0)</a>
</span>
</dd>
</dl>
</li><li gosrc="http://weibo.com/1821933091/xtt89yUnj">
<dl>
<dd class="msg"><a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank"></a>
<span class="mbTxtB" >【DIY香蕉牛奶面膜】1、熟香蕉一根,捣烂成泥状。2、加入少量牛奶搅拌均 匀。3、取适量面膜敷于面部,避开眼部和唇部肌肤。4、静待10分钟左右用清水洁面。此DIY面膜可达到美白嫩肤的功效,每周可以尝试1-2次。
</span></dd>
<dd>
<p class="wbLinkC"><a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank" >21分钟前</a></p>
<span class="act wbLinkB">
<a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank">转发(2)</a>
<em>|</em>
<a href="http://weibo.com/1821933091/xtt89yUnj" target="_blank">评论(0)</a>
</span>
</dd>
</dl>
</li>
应该是问中间的部分吧
......
ROT;这个代表什么?看着很方便吗