Home >Backend Development >PHP Tutorial >正则匹配,求帮忙解决办法

正则匹配,求帮忙解决办法

WBOY
WBOYOriginal
2016-06-13 10:24:29847browse

正则匹配,求帮忙




 

     

       

         

           

             

               

                 

                   




-------------------------------------------------
我要匹配上面html代码中
之后 第一个
之中的内容 正则该怎么写喃

也就是匹配出如下内容:
---------------------------------------------------
 

     

       

         

           

             

               

                 

                   


                    ------解决方案--------------------
                    /
                    (.*)/isU 用这个试下

                    PHP code
                    $strHtml =                         <div class="rscl"></div>            <div class="listNews">            <ul class="iconBoxT14">            <ul class="iconBoxT14">            <ul class="iconBoxT14">            <ul class="iconBoxT14">            <ul class="iconBoxT14">            <ul class="iconBoxT14">            <ul class="iconBoxT14">            <ul class="iconBoxT14">            <ul class="iconBoxT14">            </ul>
                    </ul>
                    </ul>
                    </ul>
                    </ul>
                    </ul>
                    </ul>
                    </ul>
                    </ul>
                    </div>            <div>3333</div>                        
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn