I have a results set from a webform that includes a phone number for each set. the format of this phone number is not enforced (some are xxxxxxxxxx, some are (xxx)xxx-xxxx a
On MySQL 8.0+ there is a new native function called REGEXP_REPLACE. A clean solution to this question would be:
update table set data = REGEXP_REPLACE(data, '[^0-9]+', "") where condition