Answer the question
In order to leave comments, you need to log in
Problem with regexp on mysql 8.0.26?
There is a regexp function in the php code which is on 5.7. mysql works as it should.
$show_filter_array[$k] = $this->db->placehold($k." regexp '(?)'", intval($show_filter_array[$k]));
$show_filter_array[$k] = $this->db->placehold($k." regexp '\\b(?)\\b'", intval($show_filter_array[$k]));
Answer the question
In order to leave comments, you need to log in
According to MySQL 5.7 Reference Manual / ... / Regular Exp...
,
These markers stand for word boundaries.
The Spencer library supports word-beginning and word-end boundary markers ( and notation). ICU does not. For ICU, you can use \b to match word boundaries; double the backslash because MySQL interprets it as the escape character within strings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question