我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP preg_replace BESbswy ckeditor

is it possible to match this string with using regex? The whole string is wrapped with p tags and last 2 with strong tags.

BESbswyBESbswyBESbswyBESbswy BESbswy BESbswy

Thanks!

yes, it is, something like this

<?php $string = '<p>BESbswyBESbswyBESbswyBESbswy<strong>BESbswy</strong><strong>BESbswy</strong></p>' ?>

<?= preg_replace('|<p>BESbswyBESbswyBESbswyBESbswy<strong>BESbswy</strong><strong>BESbswy</strong></p>|','aa',$string) ?>

近期文章

  • 使用php从html中提取结果
  • 将Android连接到php和mysql
  • 来自Facebook的实时页面更新
  • 比较Google AnalyticsAPI中的日期范围
  • Symfony2 XDebug在断点处停止,无法对调试按钮执行任何操作
  • mod重写 - 没有扩展名的img路径
  • 无法在Ubuntu 14.04上安装ffmpeg-php
  • 使用php从html输入添加数字
  • 根据URL / Anchor更改facebook元数据
  • 创建多个.htaccess重定向
  • Joomla 3获取文章网址
  • Chrome,Safari中的POST限制,而不是FireFox
  • mysql连接如何工作
  • .htaccess重写:规则相同,位置不同
  • 当我在Yii php中使用我的助手时,发送电子邮件不起作用
  • 我试图为两个不同的函数使用相同的代码。但是一个函数正在工作,但另一个函数不工作
  • 与学说中的STI继承有关
  • 会话固定在Joomla 2.5
  • PHP JS - 从JS调用include_once
  • 添加DataTables的复选框

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华