I want to find all users with Cyrillic names. How can I do it with ActiveRecord?
Non ActiveRecord solution is here: User.all.select{ |user| user.name.match(/\p{Cyrillic}/) }
. Unfortunatelly regexp /\p{Cyrillic}/
doesn't work with sql.
UPDATE: from the discussion below I realize that I need solutions for Postgres and MySQL.
For postgres it could be SELECT * FROM "items" WHERE (title SIMILAR TO '%[\u0410-\u044f]%')
from Find all rows using some Unicode range (such as Cyrillic characters) with PostgreSQL?