i want to replace all the 'Spaces' with ' & ' excluding ' | ' in regexp_replace
For Ex: 'create | delete account' -> expect Output as 'create | delete & account'.
I m trying with the sql
select regexp_replace('create | delete account','\s [^\s\|\s]',' & ') from dual
But i m doing something wrong here. Could anyone please help on it.