I want to query a range of characters in the Devanagari language. If I use
SELECT count(`dev`) FROM `transliteration` WHERE `dev` REGEXP 'क़';
It returns a count of 71. But I want to be able to query it via its unicode reference, so I would think that the following should work:
SELECT count(`dev`) FROM `transliteration` WHERE `dev` REGEXP '[\\x{958}]';
MariaDB supports PCRE so I should be able to do it, even if I have not thus far succeeded. I even read the documentation but to no avail. It seems like it's treating the number in the curly braces like I want repetition if I have more than two hex digits. Well, unicode has a lot more than two digits-worth of characters!
As mentioned, I would like to query a range ([\x{0958}-\x{095E}]
), but first things first.