Contains_any including a phrase that has a comma


#1

I want to include a phrase with the contains_any operator that contains a comma.

Eg if “this,that” is the phrase how do I include it in the comma separated list for contains_any?


#2

Hi,

To include a comma in your contains any operator you just need to escape the comma using a back slash. For example:

interaction.content contains_any "this\, that, hello"

Would look for the phrase “this, that” or the word “hello”.

Hope that helps!