rsk*_*k82 2 html php regex preg-match-all
在给定的页面上有许多元素:
<div class="some class"> <-- here is anything, other divs, even other divs with
the same class, but I need to match right on closing tag for this particular
opening tag --></div>
Run Code Online (Sandbox Code Playgroud)
不要使用正则表达式来解析HTML.使用DOMDocument代替并保存所有令人头疼的问题.
Stack Overflow上的相关阅读:
| 归档时间: |
|
| 查看次数: |
195 次 |
| 最近记录: |