正则截取html中的一段解决思路

WBOY
Release: 2016-06-13 11:41:35
Original
859 people have browsed it

正则截取html中的一段

<br /><html><br /><body><br />.........<br />.........<br /><ul class="style5"><br /><li><a href="/profiles/83291221"><img src="/images/252754752" alt="标题标题" />标题标题</a></li><br /><li><a href="/profiles/83291221"><img src="/images/252754752" alt="标题标题" />标题标题</a></li><br /><li><a href="/profiles/83291221"><img src="/images/252754752" alt="标题标题" />标题标题</a></li><br /></ul><br />........<br />........<br /><br /></body><br /><br /></html><br /><br /><br />
Copy after login


这样的循环 我要截取第一条,多的不要
  • 标题标题标题标题
  • 中的"83291221" "标题标题" 这两个,另外把这两个转换成变量 求大神解@@@


    php 正则 截取

    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