I have a field that has several name values seperated by $;
, like below:
$;James$;Paul$;
I have a function available on the names that allows me to identify data from a different table i.e. email address. However the function only works on a single name value. So I need to do a substring to get each name value and then run a replace command that runs the function to pull out their email address. I want to get the following responses James@emailserver.com, Paul@emailserver.com.
So my question is: how can I run a regexp_replace command to identify the names and then split them out to run the replace?