I need a simple replace function which replaces a semicolon delimited list of strings to quoted comma delimited strings.
'123;Asd;_P1;' replaces to '123', 'Asd', '_P1'
Tried this but the last string missed the quotes and also string can have other chars.
SELECT REGEXP_REPLACE('123;234;345;123','([[:alnum:]]+);', '''\1'',') List FROM DUAL;