Skip to content

Commit c3e8a22

Browse files
Explain the use of double backslashes with regex (neo4j#2655) (neo4j#2663)
1 parent f971470 commit c3e8a22

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/ROOT/pages/import.adoc

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

538+
[NOTE]
539+
====
540+
In many scripting languages, you must use double backslashes (`\\`) when defining regular expression patterns inside string literals.
541+
This is because a single backslash (`\`) is treated as an escape character.
542+
====
543+
544+
538545
==== Import data from CSV files using a more complex regular expression
539546

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