I need to replace some of characters from email addresses. For example :
If my email address is : patty.beads@mydomain.com , the output should be :
pattybeads@mydomain.com <-- removed '.' before '@mydomain.com'
Again if my email address is patty.beads+something@mydomain.com, the output should be :
patty.beads+something@mydomain.com <-- removed '.' and '+' before '@mydomain.com'
Hence, expecting some of the chars ( like '.','+' etc ) before @mydomain.com should be removed. While I am seeing that I can use REGEXP_REPLACE to replace those chars, getting hard time to understand how to include the constraint that the replacement has to be in the substring before '@'.
May I get any help?