Hello, I am working with numbers that are entered incorrectly in the database and I am trying to remove the data error. One of the values entered is like this: "14..89" when it should have been entered like this "14.89". I tried to use the reg_exp functiont o fix it but it is not working, here is what I tried so far:
SELECT REGEXP_REPLACE('14..89', '[^.0-9]+', '') from dual;
SELECT regexp_replace(regexp_substr('14..89', '.*(\..*)$', 1, 1, NULL, 1), '[^.0-9]+', '') FROM dual;
if someone could please help me, that would be great. Thank you