Find and replace braced tags within a MySQL table

Posted by Cy on Stack Overflow See other posts from Stack Overflow or by Cy
Published on 2010-04-16T11:18:00Z Indexed on 2010/04/16 11:23 UTC
Read the original article Hit count: 233

Filed under:
|
|
|

I have about 40000 records in that table that contains plain text and within the plain text, contains that kind of tags which its only characteristic is that they are braced between [ ]

[caption id="attachment_2948" align="alignnone" width="480" caption="the caption goes here"]

How could I remove those? (replace by nothing)

I could also run a PHP program if necessary to do the cleanup.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php