Sometimes I have to search nodes by RegExp ignore case query and it doesn't work on non-Latin characters.
For example I have a node.name property = ЖК Львівський маєток
If I search by
name =~ (?i).*ЖК Львівський маєток.*
everything is working fine
but in case of
name =~ (?i).*жк Львівський маєток.*
it doesn't search the node.
By the way - on Latin characters everything is working fine.
What am I doing wrong and how to fix it ?
You need add an 'u' in your regex to transform it in a case-insensitive unicode regex. Like this:
name =~ (?ui).*ЖК Львівський маєток.*
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With