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!

EMAIL VALIDATION USING REGULAR EXPRESSIONS

elessarAug 17 2012 — edited Aug 17 2012
Hi All,

I am new to regular expressions and am trying to learn about them.
As practice I am trying to develop a query to filter out invalid e-mail id's eg:-
  <some-name>.<some-name1>@gmail.com - VALID
  <some-name>_<some-name1>@gmail.com - VALID
  <some-name>@<some-name1>@gmail.com - INVALID 

 
Lets say the column name is EMAIL_ID
So I have the expression to validate the email end as follows
   select email from <table-name> where REGEXP_LIKE (EMAIL,'.com$')
However i have no idea (wheter it is even possible) to filter out the third email id
on the condition that it has *2 @*

Any help regarding this would be welcome
This post has been answered by Khayyam on Aug 17 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 14 2012
Added on Aug 17 2012
3 comments
63,061 views