This commit is contained in:
parent
0b6e2b8f16
commit
a22b90d3cc
|
@ -283,7 +283,7 @@ any where true
|
||||||
[[eql-syntax-strings]]
|
[[eql-syntax-strings]]
|
||||||
==== Strings
|
==== Strings
|
||||||
|
|
||||||
Strings are enclosed with double quotes (`"`).
|
Strings are enclosed in double quotes (`"`).
|
||||||
|
|
||||||
[source,eql]
|
[source,eql]
|
||||||
----
|
----
|
||||||
|
@ -322,28 +322,22 @@ double quote (`\"`) instead.
|
||||||
[[eql-syntax-raw-strings]]
|
[[eql-syntax-raw-strings]]
|
||||||
===== Raw strings
|
===== Raw strings
|
||||||
|
|
||||||
Raw strings are preceded by a question mark (`?`) and treat backslashes (`\`) as
|
Raw strings treat special characters, such as backslashes (`\`), as literal
|
||||||
literal characters.
|
characters. Raw strings are enclosed in three double quotes (`"""`).
|
||||||
|
|
||||||
[source,eql]
|
[source,eql]
|
||||||
----
|
----
|
||||||
?"String with a literal blackslash \ character included"
|
"""Raw string with a literal double quote " and blackslash \ included"""
|
||||||
----
|
----
|
||||||
|
|
||||||
You can escape double quotes (`"`) with a backslash, but the backslash remains
|
A raw string cannot contain three consecutive double quotes (`"""`). Instead,
|
||||||
in the resulting string.
|
use a regular string with the `\"` escape sequence.
|
||||||
|
|
||||||
[source,eql]
|
[source,eql]
|
||||||
----
|
----
|
||||||
?"\""
|
"String containing \"\"\" three double quotes"
|
||||||
----
|
----
|
||||||
|
|
||||||
[NOTE]
|
|
||||||
====
|
|
||||||
Raw strings cannot contain only a single backslash or end in an odd number of
|
|
||||||
backslashes.
|
|
||||||
====
|
|
||||||
|
|
||||||
[discrete]
|
[discrete]
|
||||||
[[eql-syntax-wildcards]]
|
[[eql-syntax-wildcards]]
|
||||||
===== Wildcards
|
===== Wildcards
|
||||||
|
|
Loading…
Reference in New Issue