I need to run a regex find-and-replace against a column named message in a MySQL table named post.
message
post
My database is running MariaDB 10.
You have to do a lot of escaping here:
REGEXP_REPLACE(message, "\\[quote\\sauthor=(.+)\\slink=[^\\]]+]", "\\[quote=\"\\1\"\\]")
Please note that you have to reference the Group by \\1
\\1