regexp_replace mysql version code example
Example: mysql regex replace
REGEXP_REPLACE(expression, pattern, replacement[, position[, occurrence[, match_type]]])
Example 1 - remove all "-" characters
SELECT REGEXP_REPLACE( fieldname, '-', '' ) AS newfieldname FROM tablename