There is a code, it works, a lot of results are found:
SELECT *
FROM `modx_site_content` AS `msProduct`
WHERE `msProduct`.`pagetitle` REGEXP '300х250х625'
But I want the number separator to be not only the Russian letter "x", but also the English "x" and the star symbol "*".
First, I change the code like this:
SELECT *
FROM `modx_site_content` AS `msProduct`
WHERE `msProduct`.`pagetitle` REGEXP '300[х]250[х]625'
I put the Russian "x" in square brackets. I ran a query and found 0 rows. MySQL does not understand Russian "x" in square brackets.
How to fix?
Table in this encoding: utf8_general_ci. Table type: InnoDB.
you should use regex symbols:
if your MySQL version bigger than 8.0 you can use unicode in REGEXP:
Also you can use mysql LIKE operator
MySQL 5.7 Pattern Matching
MySQL 8.0 Pattern Matching