当前位置: 代码迷 >> PHP >> 求正责表达式,该如何解决
  详细解决方案

求正责表达式,该如何解决

热度:51   发布时间:2016-04-29 01:16:34.0
求正责表达式
匹配 这个连接里的 http://so.letv.com/list/c2_t28_a-1_y-1_f_at_o1_p.html
这个里面的 “共25集全”就是列表图片上面显示的文字。



下面的代码来至于 这个连接:http://so.letv.com/list/c2_t28_a-1_y-1_f_at_o1_p.html

PHP code
                            <dl class="m_dl">                                <dt>                                    <a href="http://so.letv.com/tv/44734.html"                                         title="暗流" target="_blank"><img                                            src="http://img1.c3.letv.com/ptv/letv_vrs/2011/7/tv/1112ccf654294486989818d3d5a58c35.jpg"                                            alt="暗流"                                            onerror="this.src='http://img1.c0.letv.com/ptv/images/nlist/onpic.jpg';" />                                                                                                 <em></em>                                                                                 <i>共25集全</i>                                                                                                                                                                                                                 <b class="null"></b>                                                                         </a>                                </dt>                                <dd>                                    <strong><a href="http://so.letv.com/tv/44734.html"                                        title="暗流" target="_blank">暗流</a>                                    </strong>                                </dd>                                <dd>                                    主演:                                                                        <a href="http://so.letv.com/star?wd=%E5%91%A8%E8%8E%89&from=list"                                        target="_blank" title="周莉" >周莉</a>                                                                        <a href="http://so.letv.com/star?wd=%E6%96%87%E7%AB%A0&from=list"                                        target="_blank" title="文章" >文章</a>                                                                    </dd>                                                                <dd>                                    评价:                                    <span class="sorce2"><i>5.3</i> </span>                                </dd>                            </dl>                                                        <dl class="m_dl">                                <dt>                                    <a href="http://so.letv.com/tv/47973.html"                                         title="复仇第1季" target="_blank"><img                                            src="http://img1.c3.letv.com/ptv/letv_vrs/2011/9/b53d231d391842d38db397682f6836cc.jpg"                                            alt="复仇第1季"                                            onerror="this.src='http://img1.c0.letv.com/ptv/images/nlist/onpic.jpg';" />                                                                                                 <em></em>                                                                                     <i> 更新到18集</i>                                                                                                                                                                                                                <b class="null"></b>                                                                         </a>                                </dt>
  相关解决方案