php - 如何匹配整个 html 元素,无论里面有什么,就像浏览器一样?

标签 php html 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>

最佳答案

关于php - 如何匹配整个 html 元素,无论里面有什么,就像浏览器一样?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3456657/

相关文章:

regex - Notepad++正则表达式替换

php - SQL ORDER BY date DESC 不返回最后一条记录

php - 从数据库中检索数据并在得到分隔符时分隔数据?

php 函数不更新 mysql 数据库

html - 使用小窗口的负边距左技巧修复中心对齐

regex - 如何匹配除 "&&"之外的任何字符?

php - 为什么 jQuery.parseJSON() 不能在所有服务器上工作?

javascript - 如果安装了应用程序或导航用户以从 Web 应用程序播放商店,如何打开 Android 应用程序

css - 使用 CSS 控制 div 内联 block 之间的换行间距

javascript - 将错误与 if 语句混淆