I'm not expert in a regular expressions, and in oracle I want to find a string in a text using regexp_replace oracle function.
The string to find has at beginning an "{" and at the end an "}".
Between "{" and "}", you will find letters and "_" characters.
So, if I have this text:
this is a {HI_FRIEND} test to replace
how can I erase the string "{HI_FRIEND}"?
I tried this:
select REGEXP_REPLACE('this is a {HI_FRIEND} test to replace','*{(A-Z-)}*','') from dual
but it's not working.
The field that contains the text is in a table with 1 millions of records at least.
'something {123} something else'? Should I remove it or not?