Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

find bad email addresses using regexp_substr ???

Kodiak_SeattleAug 27 2015 — edited Aug 28 2015

hopefully I don't have to provide a CREATE and INSERT here, I am thinking this is a general question


So I know that this example will find the good email addresses, but how do I change this to find the bad ones ?

I know that I can use REGEXP_LIKE NOT in the Where clauses, but can I find them from the select clause ?

select

regexp_substr(email_address,'[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,4}') 

from table;

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2015
Added on Aug 27 2015
9 comments
756 views