I would like to replace "|" with "_" in mysql if meets the following query
SELECT COUNT(*) FROM wp_posts WHERE post_content REGEXP 'text\\(584\\|([a-zA-Z0-9_]+)\\|([a-zA-Z0-9_])'
so if finds for example text(584|g345|2344 should look at the end text(584_g345_2344
Is it possible if I use REGEXP to find matches?