There is an alphanumeric character '(123) 456-789 (sou_rav)' and output will be '123456789' (there should not be any special character) by using SQLite. SQLite version is 3.31.1
input | output |
---|---|
(123) 456-789 (sou_rav) | 123456789 |
I have tried below query but it's not working. Expecting out put is '123456789'
select replace(replace(replace('(123) 456-789 (sou_rav)', rtrim('(123) 456-789 (sou_rav)', '1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM!#$%^&*()_+-=`~[]\/{}|;:,.<>?'),''),'(',''),')','') as a from table_name;