I have a string:
string := '</br>, <br/>, \n<br>, jane, brutus'
I have to replace all 'br' marks by '/n' mark. I need an output like this:
'/n, /n, n/, jane, brutus'
I tried:
select regexp_replace('</br>, <br/>, \n<br>, ania', '^.*((br)[^,]+)', '\n', 1) from dual;
But then output is like this:
'/n'
Any ideas how can I resolve this problem?
, \n
, ania, brutus', '^.*((br)[^,]+)', '\n', 1) from dual; – Mateusz Srebniak Aug 01 '22 at 06:39