php - 我是否为标签使用了不正确的正则表达式字符串?
问题描述
解决方案
If you want to just remove all the <u>
tags, a simple
preg_replace('~</?u>~', '', $content);
will do the job.
推荐阅读
- java - JPA:使用单向@OneToMany 时,子实体中的引用列为空
- java - JdbcTemplate.excute -spring- 不适用于 plsql
- c++ - Ellipsis NULL, nullptr and undefined behaviour
- perl - 解析文本文件数据以在 perl 中发送邮件
- javascript - api 循环调用,直到响应成功
- php - Laravel api 向前端返回 401
- java - 为 UDP 套接字程序设置的 DF 位
- python - 如何使用嵌入在 python 中的名称命名矩阵的列和行?
- php - XML 节点内容更改
- c# - 如何在 wcf 模块 c# 中执行存储过程