regex模式提取引号

问题描述

| 在我的网站上切换辩论论坛的代码,我将更改报价存储在数据库中的方式。现在,我需要提出一个正则表达式来重新排列数据库中已提交的帖子。 以下是我当前的辩论帖子如何存储在数据库中的示例(引号中带有引号)。注意:为便于说明,我对其进行了缩进:
Just citing a post
[quote]Text of quote #3
       [quote]Text of quote #2
              [quote]Text of quote #1
                     [name]User 1[/name]
              [/quote]
              [name]User 2[/name]
       [/quote]
       [name]User 3[/name]
[/quote]
我现在想要的是将前者重新排列为:
Just citing a post
[quote:User 3]
      Text of quote #3
      [quote:User 2]
           Text of quote #2
           [quote:User 1]
                 Text of quote #1
           [/quote]  
      [/quote]   
[/quote]
你们中的任何人都可以指出我如何使用正则表达式进行操作的方向吗?我正在使用PHP。 预先感谢,感谢您的帮助:) 费舍尔     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)