I’m trying to test out a function (in this case – regexp_replace(tvalue,'([[:cntrl:]])’,”)) and was wondering if there is a way to go through multiple input data to a function in one SQL query?
basically i want to see that a function is replacing non-printable characters, my idea was something like the below:
my pseudocode:
with testdata as (select
'teststring1',
'$kfjs',
chr(10)||'test',
' <>',
null,
'[{}&,''/\'
from dual)
select tvalue, regexp_replace(tvalue,'([[:cntrl:]])','') from testdata
where tvalue <> regexp_replace(tvalue,'([[:cntrl:]])','');
1 Answer