# Typo in documentation? (https://neo4j.com/docs/operations-manual/current/tutorial/import-tool/)

**URL:** <https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464>\
**Category:** Documentation\
**Created:** [August 14, 2020, 1:06pm UTC](https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464 "2020-08-14T13:06:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dan.addison](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dan.addison/32/4441_2.png) [@dan.addison](https://community.neo4j.com/u/dan.addison)\
**Post date:** [August 14, 2020, 1:06pm UTC](https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464/1 "2020-08-14T13:06:50Z")

</div>

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:

```auto
neo4j_home$ bin/neo4j-admin import --nodes=import/movies4-header.csv,import/movies4-part.* --nodes=import/actors4-header.csv,import/actors4-part.* --relationships=import/roles4-header.csv,import/roles4-part.*

```

I think this might need to be (with quotes)...

```auto
neo4j_home$ bin/neo4j-admin import --nodes="import/movies4-header.csv,import/movies4-part.*" --nodes="import/actors4-header.csv,import/actors4-part.*" --relationships="import/roles4-header.csv,import/roles4-part.*"

```

> **[Importing data - Operations Manual](https://neo4j.com/docs/operations-manual/current/tutorial/neo4j-admin-import/)**
>
> This tutorial provides detailed examples to illustrate the capabilities of importing data from CSV files with the command \`neo4j-admin database import\`.

---

<div class="post-metadata">

**Author:** ![clem](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/clem/32/4364_2.png) [@clem](https://community.neo4j.com/u/clem)\
**Post date:** [January 12, 2021, 7:01pm UTC](https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464/2 "2021-01-12T19:01:59Z")

</div>

I believe this got fixed.

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...)

---

<div class="post-metadata">

**Author:** ![dan.addison](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dan.addison/32/4441_2.png) [@dan.addison](https://community.neo4j.com/u/dan.addison)\
**Post date:** [January 12, 2021, 7:40pm UTC](https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464/3 "2021-01-12T19:40:02Z")

</div>

thanks a lot for the explanation (and for prompting me to find out what globbing is 👍)

---

<div class="post-metadata">

**Author:** ![clem](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/clem/32/4364_2.png) [@clem](https://community.neo4j.com/u/clem)\
**Post date:** [January 12, 2021, 7:52pm UTC](https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464/4 "2021-01-12T19:52:27Z")

</div>

One cautionary note: globbing _ **looks** _ like regular expressions, but it's not! Globbing and regex are confusingly similar.

---

<div class="post-metadata">

**Author:** ![dan.addison](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dan.addison/32/4441_2.png) [@dan.addison](https://community.neo4j.com/u/dan.addison)\
**Post date:** [January 12, 2021, 9:18pm UTC](https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464/5 "2021-01-12T21:18:49Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![clem](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/clem/32/4364_2.png) [@clem](https://community.neo4j.com/u/clem)\
**Post date:** [January 12, 2021, 9:21pm UTC](https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464/6 "2021-01-12T21:21:53Z")

</div>

Regex takes years (at least months!) of practice.

This will help a lot!

> **[regex101: build, test, and debug regex](https://regex101.com/)**
>
> Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET.

Beware that there are actually a few different versions of regex, which differ in details, so make sure you know which one you are using!

Neo4J has two:

- the built-in one: [WHERE - Cypher Manual](https://neo4j.com/docs/cypher-manual/current/clauses/where/#query-where-regex)
- the APOC one which uses Java's regexp library (more powerful) [apoc.text.regexGroups - APOC Extended Documentation](https://neo4j.com/labs/apoc/4.2/overview/apoc.text/apoc.text.regexGroups/)

---

<div class="post-metadata">

**Author:** ![dan.addison](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/dan.addison/32/4441_2.png) [@dan.addison](https://community.neo4j.com/u/dan.addison)\
**Post date:** [January 12, 2021, 9:41pm UTC](https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464/7 "2021-01-12T21:41:31Z")

</div>

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 👍

---

<div class="post-metadata">

**Author:** ![clem](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/clem/32/4364_2.png) [@clem](https://community.neo4j.com/u/clem)\
**Post date:** [January 12, 2021, 9:45pm UTC](https://community.neo4j.com/t/typo-in-documentation-https-neo4j-com-docs-operations-manual-current-tutorial-import-tool/23464/8 "2021-01-12T21:45:15Z")

</div>

Regex `GROUPS`(in APOC) is very powerful! You can much better deal with complex situations especially with data cleanup.
