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!

how to find the first occurence of the pattern by regexp_like

ReemaPuriAug 19 2018 — edited Aug 20 2018

create table test

(

name varchar2(100));

insert into test values('abc.def');

insert into test values('def.ghf.klh');

insert into test values ('abc.def@gmail');

commit;

select name from btpeople where REGEXP_LIKE(name, '^[a-zA-Z][.a-zA-Z]+$');

output:-

abc.def

def.ghf.klh

But i want result only :-

abc.def

(that is alphabet then one dot and then alphabet)

This post has been answered by mNem on Aug 19 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 17 2018
Added on Aug 19 2018
6 comments
907 views