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

Intercept Targeting loic using Regex expression.

  • January 16, 2023
  • 3 replies
  • 97 views

Forum|alt.badge.img+1

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!


3 replies

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • January 17, 2023

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!


Forum|alt.badge.img+1

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.


Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • January 17, 2023