I would like to remove square brackets and content between them from WP posts. I found very helpful topic for similar issue, unfortunately when I am using this regex in SQL query, it's not working - not matches found.
UPDATE wp_posts SET post_content = REGEXP_REPLACE(post_content,'\[(.+?)\]','') WHERE ID = '4186' AND post_type = 'page';
I have tested sql and regex itself, separately - their are working correctly, could anyone point me out the issue?