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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:49:53+00:00 2026-05-23T07:49:53+00:00

Has anyone found that REGEX \b doesn’t work in MYSQL? I have a nice

  • 0

Has anyone found that REGEX “\b” doesn’t work in MYSQL?

I have a nice piece of regex that matches well using regex engines

^(//)?w7\b

But when I use it as part of a MYSQL query

WHERE ( e.department REGEXP '^(//)?w7\b' )

it will not match. If I remove the \b component, the match works well but its not to the accuracy that I need with the \b (basicly I need to match the whole word W7 only)

Thank you!

  • 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-23T07:49:54+00:00Added an answer on May 23, 2026 at 7:49 am

    For MySQL versions prior to MySQL 8.0.4, the REGEXP (MySQL 5.6 ref) docs indicate that the start-of-word/end-of-word markers are:

    [[:<:]], [[:>:]]
    

    These markers stand for word boundaries. They match the beginning and end of words, respectively.

    Try:

    WHERE ( e.department REGEXP '^(//)?w7[[:>:]]' )
    

    After 8.0.4, \b is used for word boundary instead.

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

Sidebar

Related Questions

Has anyone found/coded extension method that query data (using linq to sql ) in
Has anyone else found that flash is VERY slow when using Firefox 4 on
Given that Chrome and Safari use webkit has anyone yet found anything that renders
Has anyone else found VIM's syntax highlighting of Javascript sub-optimal? I'm finding that sometimes
Has anyone found it strange that the default context for uint and ulong is
Has anyone found a smart way to use NServiceBus, without having to implements that
I have found that while using the <meta name=apple-mobile-web-app-capable content=yes /> tag in iOS
There is a nice function plotter built into OSX. Has anyone found something free
I have found that certain inputs cause the iteration over the matches to have
Has anyone found html textarea plugin that works with iPad? If i use any

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.