File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed
modules/ROOT/pages/syntax Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change @@ -11,27 +11,16 @@ This page details the general rules on which characters are considered valid inp
1111== Using unicodes in Cypher
1212
1313Unicodes can generally be escaped as `\uxxx`.
14- In the below example, the Unicode `\u03B1\u03B2` is used to create a property named `αβ`.
14+ For example, the below query uses the Unicode `u00B0` to search for any recipe descriptions containing the degree symbol, `º`:
1515
16- .Using Unicodes in property names
16+ .Using Unicodes in `STRING` matching
1717[source, cypher]
1818----
19- CREATE (n:Test {\u03B1\u03B2: "AlphaBetaExample"})
20- WITH n
21- MATCH (n:Test)
22- RETURN properties(n) AS property
19+ MATCH (r:Recepy)
20+ WHERE r.Description CONTAINS "\u00B0"
21+ RETURN r
2322----
2423
25- .Result
26- [role="queryresult",options="header,footer",cols="1*<m"]
27- |===
28- | property
29-
30- | {αβ: "AlphaBetaExample"}
31-
32- d|Rows: 1
33- |===
34-
3524Additional documentation on escaping rules for `STRING` literals, names and regular expressions can be found here:
3625
3726* xref::queries/expressions.adoc#expressions-string-literals[String literal escape sequences]
You can’t perform that action at this time.
0 commit comments