Intercept Targeting loic using Regex expression. | XM Community
Skip to main content

Hello,
I want to add targeting logic such that the App intercept triggers only if the custom property Env is stg OR prod or "" (empty).
I'm trying to use following:

Custom Property Env Text Matches Regex ^(stg|prod|)$

This seems to be not working. Is my regex expression ^(stg|prod|)$ correct?
Thank you!


https://community.qualtrics.com/XMcommunity/discussion/23572/intercept-targeting-loic-using-regex-expressionWhy don't you use multiple logic sets if env= stg or env=prod or env is empty.
Hope it helps!


Hi Deepak,
Thank you for your response. I have posted a single variable; there are quite a few variables for which I felt that using regex would be a better option, as it will eliminate the need to create multiple logic sets.

But, of course, if nothing works, then I will have to use multiple logic sets.


https://community.qualtrics.com/XMcommunity/discussion/comment/54100#Comment_54100Try and use something like ^(stg|prod)?$



Leave a Reply