我想更改 wordpress wp_posts 表上的短代码。在 post_contents 字段上,我有一些 html 代码,其中有一些短代码,如下所示:
[PFltr "this text is variable, changes on each occurrence"]
我想改变这一点:
[scode option="1"]this text is variable changes on each occurrence[/scode]
是否有任何 mysql 更新查询(可能使用正则表达式)来执行此操作?
最佳答案
关于Mysql 替换两个模式之间包含的文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25589812/