Home > front end >  Can I use case insensitive regex in Cypher query?
Can I use case insensitive regex in Cypher query?

Time:01-27

I am using Memgraph Platform 2.6.4 and I can't seem to use (?i) for case insensitive regular expression. It throws "Invalid special open parenthesis" error. What is the best way to approach this?

CodePudding user response:

Memgraph does not support case insensitive flag ((?i)), but you can use toLower function to turn your strings into lowercase and compare them with another lowercase string. Here is the documentation on regular expressions and on toLower function.

  • Related