I want to find string in mysql with 3 repeating character. I read all answers like here Regex to find repeating numbers but it does not work with MySQL 5.7:
select '211' REGEXP '(.)\1\1'; //true but I expect false
select '211' REGEXP '(.)\1{2}'; // true but I expect false
select '211' REGEXP '([[:alnum:]])\1\1'; //true but I expect false
select '211' REGEXP '(\w)\1{2}'; //false but
select '111' REGEXP '(\w)\1{2}'; // also false
UPDATE: As tested it works as expected with MySQL 8.