Match only aaa
mysql> mysql> SELECT 'aaaa' REGEXP '^aaa$'; +-----------------------+ | 'aaaa' REGEXP '^aaa$' | +-----------------------+ | 0 | +-----------------------+ 1 row in set (0.00 sec)