I'm just getting started with Neo4J, which is incredible!
I'm following the documentation for neo-admin load and think there's a typo? I couldn't get the regular expressions to work unless the paths are in double quotes. They are in the text but not in the example script. Very minor but thought it worth pointing out?
B.2.4.1. Using regular expressions for specifying multiple input files
...
If we use the regular expression movies4.* , the sorting will place the header file last and the import will fail. A better alternative would be to name the header file explicitly and use a regular expression that only matches the names of the data files. For example: --nodes "import/movies4-header.csv,movies-data.*" will accomplish this.
Using the same data files as in the previous example, the call to neo4j-admin import can be simplified to:
this is a general problem in Unix: the command line Globbing expands * and ? (and other special characters). To avoid this, you need to put it in single quotes or double quotes (depending...)
Thanks for the pointer. I think I remember reading ‘if you have a problem and you solve it with regex you now have two problems’. I’ve found regex incredibly useful but I’m never more than 90% sure I know why it’s working for anything beyond very simple stuff. I should read up on both.
This a great - thanks a lot. I’ve used REGEXP_ in the relational world but regex looks much more baked into cypher. Much more than I’d realised. I’m going to spend some time taking a closer look so thanks again