属性值开头如何使用通配符?

How to use wildcards at the beginning of property value?

我需要这样的东西...

match (n)-[:RELATIONSHIP]-(NODE) where NODE.name=~ "*.(?i)something.*"  Return n.name

末尾的通配符有效。但是另一个不会。

谢谢。

你很接近,只需将不区分大小写的标记放在开头并使用 .* 作为占位符。尝试以下操作:

match (n)-[:RELATIONSHIP]-(NODE) where NODE.name=~ "(?i).*something.*"  Return n.name

这个有效: 匹配 (n)-[:RELATIONSHIP]-(NODE) where NODE.name=~ ".(?i).something." Return n.name