I have a input column with below values.
1.2%
111.00$
$100.00
aa
ss
Output expected
1.2
111.00
100.00
null
null
I am trying to use REGEXP_REPLACE and tried replacing every character that is not a digit or "." so that 1.2%
will become 1.2
.
Here is the query I tried but this didn't work.
regexp_replace('%1.aa2', '[^[\d|\.]]', '')
Can anyone suggest how to do that? and what I am doing wrong? I am working on Oracle 11.2 database with pl/sql developer.