DPU:
variable
Purpose:
To filter for one string from a list of strings.
Type:
The contains_any
operator takes a comma-separated list of string arguments.
It uses tokenization on its arguments.
Case:
Not case sensitive. Add the cs keyword or the case switch to create a case-sensitive filter with contains_any.
Syntax:
contains_any "string-1, string-2, .... string-n"
Synonyms:
any
Examples:
-
Filter for posts that mention a company. For example, Hewlett-Packard spells its name with a hyphen but omits the hyphen from the abbreviated form, HP. The company is never officially referred to as "Hewlett Packard" (without a hyphen) nor "H-P" (with a hyphen). However, people might use these incorrect terms when discussing the company online.
interaction.content contains_any "HP, H-P, Hewlett-Packard, Hewlett Packard"
-
Filter for a post that mentions Apple, Google, or Microsoft, or any combination of two or all three of these companies. Notice that this example uses the synonym
any
.interaction.content cs any "Apple,Google,Microsoft"