mysql>
mysql> SELECT 'abcdeX' REGEXP '^[^a-dXYZ]+$';
+--------------------------------+
| 'abcdeX' REGEXP '^[^a-dXYZ]+$' |
+--------------------------------+
| 0 |
+--------------------------------+
1 row in set (0.00 sec)
mysql>