Check out example codes for "sql distinct email regex". It will help you in understanding the concepts better.

Code Example 1

/*Return distinct email domain name using regular expression*/
SELECT DISTINCT (REGEXP_SUBSTR (EMAIL_ADDR, '(@)\w+[\.-]\w+\.?\w+\.?\w+')) 
FROM SCHEMA.TABLE_NAME;

Learn ReactJs, React Native from akashmittal.com