I need to extract all e-mail accounts mentioned on a single string, so far I've tried with SUBSTR and INSTR, but with no success, here an example:
The string looks like this:
()
string = "User_1" {[email protected]};"User_2" {[email protected]};"User_3" {[email protected]};"User_4" {[email protected]};
select SUBSTR(string ,INSTR(string ,'<',-1,2)) EMAIL
from dual;
What I need is something like this:
[email protected];[email protected];[email protected];[email protected];
{ }) and the only things ever enclosed in curly braces are email addresses? If so, then the problem is not too complicated. Also: what is the desired output? You show a single string, separated by semicolons. That doesn't seem optimal; the best output is one email per row of output.