Skip to content

Commit 76dd0c5

Browse files
new example
1 parent 9eab45a commit 76dd0c5

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

modules/ROOT/pages/syntax/parsing.adoc

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff 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

1313
Unicodes 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-
3524
Additional 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]

0 commit comments

Comments
 (0)