Skip to content

Commit daef606

Browse files
authored
[DOCS] EQL: Replace ?"..." with """...""" for raw strings (#63191)
1 parent 306e1d7 commit daef606

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

docs/reference/eql/syntax.asciidoc

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ any where true
283283
[[eql-syntax-strings]]
284284
==== Strings
285285

286-
Strings are enclosed with double quotes (`"`).
286+
Strings are enclosed in double quotes (`"`).
287287

288288
[source,eql]
289289
----
@@ -322,28 +322,22 @@ double quote (`\"`) instead.
322322
[[eql-syntax-raw-strings]]
323323
===== Raw strings
324324

325-
Raw strings are preceded by a question mark (`?`) and treat backslashes (`\`) as
326-
literal characters.
325+
Raw strings treat special characters, such as backslashes (`\`), as literal
326+
characters. Raw strings are enclosed in three double quotes (`"""`).
327327

328328
[source,eql]
329329
----
330-
?"String with a literal blackslash \ character included"
330+
"""Raw string with a literal double quote " and blackslash \ included"""
331331
----
332332

333-
You can escape double quotes (`"`) with a backslash, but the backslash remains
334-
in the resulting string.
333+
A raw string cannot contain three consecutive double quotes (`"""`). Instead,
334+
use a regular string with the `\"` escape sequence.
335335

336336
[source,eql]
337337
----
338-
?"\""
338+
"String containing \"\"\" three double quotes"
339339
----
340340

341-
[NOTE]
342-
====
343-
Raw strings cannot contain only a single backslash or end in an odd number of
344-
backslashes.
345-
====
346-
347341
[discrete]
348342
[[eql-syntax-wildcards]]
349343
===== Wildcards

0 commit comments

Comments
 (0)