Skip to content

Commit 7d74a2b

Browse files
Explain the use of double backslashes with regex
1 parent 15436f7 commit 7d74a2b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/ROOT/pages/tools/neo4j-admin/neo4j-admin-import.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,13 @@ For example:
494494
bin/neo4j-admin database import full --nodes import/node_header.csv,import/node_data_\d+\.csv
495495
----
496496

497+
[NOTE]
498+
====
499+
In many scripting languages, you must use double backslashes (`\\`) when defining regular expression patterns inside string literals.
500+
This is because a single backslash (`\`) is treated as an escape character.
501+
====
502+
503+
497504
==== Import data from CSV files using a more complex regular expression
498505

499506
For regular expression patterns containing commas, which is also the delimiter between files in a group, the pattern can be quoted to preserve the pattern.

0 commit comments

Comments
 (0)