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

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

WBOY
Release: 2016-06-13 10:24:29
Original
857 people have browsed it

正则匹配,求帮忙




 

     

       

         

           

             

               

                 

                   




-------------------------------------------------
我要匹配上面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>                        
                    Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template