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 6763059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:25:54+00:00 2026-05-26T14:25:54+00:00

Before posting I’ve searched a lot but I’ve not found what exactly I was

  • 0

Before posting I’ve searched a lot but I’ve not found what exactly I was searching for. The question is quite simple.

I’ve a text in a table (database MySql) which has to use InnoDB engine (so I can’t use FULL-TEXT search which requires MyIsam as engine). My goal is to find a word in the text. The word, as you can easily guess, can be surrounded by space, tabs, marks and so on and can be at the start, in the middle or at the end of this text.

I know that I can use REGEXP operator and infact I use it but the SQL statement that I made it’s not exactly what I need and so I thought to post the question. This is my actual SQL:

SELECT *
FROM table
WHERE field REGEXP '[[:space:][:graph:]]+THEWORD[[:space:][:graph:]]+'

How I can achieve my goal?

Thanks to everyone.

  • 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-26T14:25:55+00:00Added an answer on May 26, 2026 at 2:25 pm

    Use word boundary markers:

    SELECT *
    FROM table
    WHERE field REGEXP '[[:<:]]THEWORD[[:>:]]'
    

    (found in the MySQL 5.1 Reference)

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

Sidebar

Related Questions

Before posting this question, I have tried so many things but that was not
I quickly searched for this before posting, but could not find any similar posts.
I've searched this question in Stack Overflow before posting it, but none of the
I did quite a bit of homework before posting here but still could not
I searched StackOverflow before posting this question but I wasn't able to find the
I read through several questions similar to this one before posting, but did not
I have searched before posting but none of the posts are that relevant (saying
I did check those posts about Infinite gallery before posting this question but it
Before posting this I've read through but I'm still not clear on how to
before posting the whole code, i wanted to make sure I am not missing

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.