It does not work in MySQL (8.0.5+) using ICU-REGEXP to perform a search on the word boundary. As far as I understand it should be a-la
$ mysql -e 'SELECT REGEXP_LIKE("aaa abc ccc", ".*\b+abc\b+.*")'
+---------------------------------------------+
| REGEXP_LIKE("aaa abc ccc", ".*\b+abc\b+.*") |
+---------------------------------------------+
| 0 |
+---------------------------------------------+
but this option does not work.
Also word boundaries:
[[:<:]]
and[[:>:]]
First, note that
REGEXP_REPLACE
can match strings partially, and you do not need.*
before and after a search word.The
\
char should be escaped in order to define a literal backslash, since\
itself allows escaping characters for the MySQL engine. See this MySQL 8 documentation:Thus, you need