It works:
mysql> SELECT '123456789' REGEXP '.{3}';
mysql> SELECT '123456789' REGEXP '.{10}';
but not this:
mysql> SELECT * FROM mymodel WHERE some_text_field REGEXP '.{100}';
throw exception: ERROR 1139 (42000): Got the error "invalid number of retries" from regexp
source
share