Remove nested quotes

后端 未结 3 1243
無奈伤痛
無奈伤痛 2020-12-20 09:47

I have this text and I\'m trying to remove all the inner quotes, just keeping one quoting level. The text inside a quote contains any characters, even line feeds, etc. Is th

3条回答
  •  囚心锁ツ
    2020-12-20 10:30

    use this pattern

    \[quote=?[^\]]*\][^\[]*\[/quote\](?=((.(?!\[q))*)\[/)
    

    and replace with nothing like in this example

提交回复
热议问题