Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 532657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:25:41+00:00 2026-05-13T09:25:41+00:00

In Oracle/PLSQL, the instr function returns the location of a sub-string in a string.

  • 0

In Oracle/PLSQL, the instr function returns the location of a sub-string in a string.

If the sub-string is not found, then instr will return 0.

I want to search multiple sub-strings in a string and return the first non-zero value. This can be achieved using regexp_instr, but I’d like a non-regexp_ solution.

Example:

regexp_instr('500 Oracle Parkway, Redwood Shores, CA','(Apple|Park|Shores)')

should return 12 (the location of ‘Park’).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:25:42+00:00Added an answer on May 13, 2026 at 9:25 am

    INSTR doesn’t support regex ORs – you’d have to define INSTR function calls for each substring you want to check for. The equivalent of regexp_instr('500 Oracle Parkway, Redwood Shores, CA','(Apple|Park|Shores)') would be:

    WHERE (INSTR('500 Oracle Parkway, Redwood Shores, CA', 'Apple') > 0
          OR
          INSTR('500 Oracle Parkway, Redwood Shores, CA', 'Park') > 0
          OR
          INSTR('500 Oracle Parkway, Redwood Shores, CA', 'Shores') > 0)
    

    Depending on your needs, full text search functionality might be more towards what you want?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 511k
  • Answers 511k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I wouldn't claim this to be the most elegant and… May 16, 2026 at 5:11 pm
  • Editorial Team
    Editorial Team added an answer I think this should be helpful: http://www.mssqltips.com/tip.asp?tip=2055 May 16, 2026 at 5:11 pm
  • Editorial Team
    Editorial Team added an answer Well, I will answer this myself This can be done… May 16, 2026 at 5:11 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

How can I count only NULL values in Oracle/PLSQL? I want to count only
i have complete sql and plsql course and , i want to begin learn
What's PLSQL (Oracle) equivalent of this SQL server snippet? BEGIN TRAN INSERT INTO mytable(content)
I have an oracle function which is given below. when I run this in
I'm not the first to have these issues, and will list some reference posts
I have a list of values I want to insert into a table via
I am collecting runtime profiling data from PLSQL stored procedures. The data is collected
(This is similar to a question I asked earlier: Porting Oracle Procedure to PostgreSQL
When adding internationalisation capabilities to an Oracle web application (build on mod_plsql), I'd like
in plsql, i saw some one use for loop without define the loop index,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.