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

  • SEARCH
  • Home
  • 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 6729023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:14:22+00:00 2026-05-26T10:14:22+00:00

OK So i am confused (obviously) I’m trying to return rows (from Oracle) where

  • 0

OK So i am confused (obviously)

I’m trying to return rows (from Oracle) where a text field contains a complete word, not just the substring.

a simple example is the word ‘I’.

Show me all rows where the string contains the word ‘I’, but not simply where ‘I’ is a substring somewhere as in '%I%'

so I wrote what i thought would be a simple regex:

select REGEXP_INSTR(upper(description), '\bI\b') from mytab;

expecting that I should be detected with word boundaries. I get no results (or rather the result 0 for each row.

what i expect:

  • ‘I am the Administrator’ -> 1
  • ‘I’m the administrator’ -> 0
  • ‘Am I the administrator’ -> 1
  • ‘It is the infamous administrator’ -> 0
  • ‘The adminisrtrator, tis I’ -> 1

isn’t the /b supposed to find the contained string by word boundary?

tia

  • 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-26T10:14:22+00:00Added an answer on May 26, 2026 at 10:14 am

    I believe that \b is not supported by your flavor of regex :

    http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14251/adfns_regexp.htm#i1007670

    Therefore you could do something like :

    (^|\s)word(\s|$)
    

    To at least ensure that your “word” is separated by some whitespace or it’s the whole string.

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

Sidebar

Related Questions

Very confused here, trying out the yuicompressor on a simple javascript file. My js
I am bit confused about ADO.Net Data Services. Is it just meant for creating
I'm trying to find my ways in the C++ land and am increasingly confused
I am somewhat confused right now with a obviously pretty simple regex but it
I'm may just be confused how this all works...in which case, please explain it
I'm trying my hand at the iPhone course from Stanford on iTunes U and
One thing that's always confused me is input escaping and whether or not you're
I have this table which contains a field called 'icon_for' which I have been
I am really getting confused on how pointers work. I am trying to write
Not to be confused with how to split a string parsing wise, e.g.: Split

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.