Learn more about string manipulation in Cortex Query Language (XQL) using double and triple quotes.
When defining string fields in Cortex Query Language (XQL) queries, it's important to understand the various string manipulations available and the syntax required to build effective queries that return the results you're expecting. Cortex Query Language (XQL) uses RE2 for its regular expression implementation.
Cortex XDR enables you to use single double quotes ("<text>"
) or triple double quotes ("""<text>"""
) when defining your XQL syntax for string manipulation. This specific syntax is used with different stages, functions, and operators, with or without wildcards. Typically, the alter
and filter
stages are used with single or triple double quotes, so these stages are used in the examples provided below.