Hi there,
We have a column which contains variable length string/varchar2 values.
We want to mask all but the last 4 characters and preserve the length.
Really we are using the DBMS_REACT.REGEXP which underneath the scenes is equivalent to REGEXP_REPLACE (I believe ).
This would be easy if Oracle supported negative lookaheads (e.g. in Java String.replaceAll(".(?!.{0,3}$)", "X")); returns exactly what I need
How can I achieve this?
Thanks
Pat