Using regular expressions beyond matching in Cypher

前端 未结 2 1612
长情又很酷
长情又很酷 2021-01-25 18:09

I make the following query

neo4j-sh (?)$ start n=node(*) where n.name  =~ \'u(.*)\' return n; 
==> +-----------------------+
==> | n                     |
         


        
2条回答
  •  南方客
    南方客 (楼主)
    2021-01-25 18:52

    I had the same issue, so I developed a tiny Neo4j server plugin that lets you run regular expressions over REST API and against string node properties for matching/splitting/substituting purposes. It can return the results inside Neo4j console or save them to a property.

    Have a look at it, maybe you find it useful: https://github.com/mszargar/Regx4Neo

    It takes just a minute to install, but you will have to restart Neo4j for it to take effect.

提交回复
热议问题