Hi All, Can some one tell me how to use like operator or regexp with multiple values?

I need to check for invalid column  name.

Valid ones start with  Git (GIT 2455-xxx) or (Robo del-12333-x) or (IC 2222)

Invalid ones that do not begin with GIT or ROBO or IC.
I get error  when I tried below
  REGEXP_match(Name, 'Robo', 'Guts', 'IC') then 0
else 1 end as Naming Convention
or when Name like ('%Git', '%Robo%', '%IC%') . Any suggestions?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Qlemo"Batchelor", Developer and EE Topic AdvisorCommented:
REGEXP_match isn't Oracle syntax, and the fragment you posted is incomplete. Please post something more informative, and tell which SQL flavour you are talking 'bout.
For Oracle you can find easy to understand examples at http://www.orafaq.com/node/2404 .
slightwv (䄆 Netminder) Commented:
Try this:
case when regexp_like(col1,'^(GIT|Robo|IC) ') then 0 else 1 end
awking00Information Technology SpecialistCommented:
Since you initially showed your search expressions in uppercase, but then showed them in mixed case in your try, I would just add the case insensitive parameter, 'i', to slightwv's solution -
case when regexp_like(column, '^(GIT|ROBO|IC)','i') then 0 else 1 end

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tulip_23Author Commented:
I've requested that this question be deleted for the following reason:

Found my own solution
Tulip_23Author Commented:
I like the solution given
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Regular Expressions

From novice to tech pro — start learning today.