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!

using REGEXP_LIKE

Gor_MahiaOct 11 2021

all,
i thought this would be simple but also it seems like not so much documentation on regular expressions like REGEXP_LIKE.
iam trying to come up with the REGEXP_LIKE expression to return all and only strings starting with "KE" and ending with any of "C" or "T" or "M"

examples:
keXXXM,
KEqhdgcdt,
KeUSAc

my expression doesnt seem to get the job done: ...where REGEXP_LIKE (b.str, '^KE*[c$mT]','i');

any idea is appreciated.

thanks.

This post has been answered by Mike Kutz on Oct 11 2021
Jump to Answer
Comments
Post Details
Added on Oct 11 2021
3 comments
603 views