Cypher 中的这个运算符 (=~) 是什么意思?
What does this operator (=~) in Cypher mean?
我在 Neo4j docs, but they are using it in this example:
中找不到此运算符 (=~
)
MATCH (user)-[:friend]->(follower)
WHERE user.name IN ['Joe', 'John', 'Sara', 'Maria', 'Steve'] AND follower.name =~ 'S.*'
RETURN user, follower.name
知道这是什么意思吗?
=~
运算符将告诉 neo4j 将右侧的字符串作为正则表达式求值。这个参考更好...
http://neo4j.com/docs/developer-manual/current/cypher/clauses/where/#query-where-regex
我在 Neo4j docs, but they are using it in this example:
中找不到此运算符 (=~
)
MATCH (user)-[:friend]->(follower)
WHERE user.name IN ['Joe', 'John', 'Sara', 'Maria', 'Steve'] AND follower.name =~ 'S.*'
RETURN user, follower.name
知道这是什么意思吗?
=~
运算符将告诉 neo4j 将右侧的字符串作为正则表达式求值。这个参考更好...
http://neo4j.com/docs/developer-manual/current/cypher/clauses/where/#query-where-regex