Trouble with REGEXP_REPLACE in MySQL 8
问题 I recently upgraded to MySQL 8 so that I can use the new Regular Expression functions (https://dev.mysql.com/doc/refman/8.0/en/regexp.html) to clean up a lot of bad addresses. However, I'm running into trouble using REGEXP_REPLACE. I'm starting by running a SELECT query as an example (so I can see what's going on before I run an UPDATE query): SELECT address1_raw, CONVERT(REGEXP_REPLACE (address1_raw, '^[0-9]+ ', '') USING UTF8) as replaced, CONVERT(REGEXP_SUBSTR(address1_raw, '^[0-9]+ ')