相关疑难解决方法(0)

如何使用RegEx删除html元素及其内容

我有一个div id喜欢从输出中删除看起来像

<div id="ithis" class="cthis">Content here which includes other elements etc..) </div>
Run Code Online (Sandbox Code Playgroud)

如何使用PHP和正则表达式删除此div及其中的所有内容?

谢谢.

php regex

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

php ×1

regex ×1