Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コードの div と div 内の用語を置き換える必要があります。
PHPでは次のようになります。
$newbody = str_replace('<div(.*?)>','',$body);
しかし、Mysqlでは、単語を置き換えるためにこの構造があります:
UPDATE `wp_posts` SET `post_content` = replace(post_content, '<div(.*?)>', '');# <- thats wrong
みんなありがとう。