I need to extract a substring from a long string. I tried the following query but doesn't work , it returns me NULL,
I want to extract the first value 12 between the <cc>
and </cc>
select regexp_substr('<CC>3</CC><CN>ROSSI</CN><NO>MARIO</NO><IN>VIA DELLE MIMOSE 4</IN>,'<CN>[^</CN>]*')
"REGEXPR_SUBSTR"
FROM DUAL;
I get as a result <CN>ROSSI
but I want also to eliminate also the <CN>
, any suggestion?