Strings containing multiple slashes can be matched with AQL by using the ESCAPE keyword followed by a single slash. This will treat the following character as a literal rather than a special character. For example:
LET myString = "C:/documents/slides/"
FOR doc IN documents
FILTER doc.path == ESCAPE(myString, '/') // Escaping the slashes in myString
RETURN doc
This query will match documents whose path
attribute is equal to C:/documents/slides/
.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-10-11 11:00:00 +0000
Seen: 17 times
Last updated: May 21 '22
Python: What does the f in the call function(title=f"Hello world", ...) mean?
How to determine the number of regular expression strings in Yara?
What is the process for determining the longest common substring?
Is there a way to translate more than one string simultaneously?
Be aware that only the initial byte will be allotted to the string offset.