REGEX not working as intended | XM Community
Question

REGEX not working as intended

  • 26 October 2020
  • 0 replies
  • 26 views

Hey all,
Since Qualtrics eliminated their REGEX filters from reports (killing a long-running survey) I have had to add a workaround in the survey flow.
Each survey respondent is given a URL with an embedded code identified as CSA which looks like this:
4-980-325-19749
of type text set.
For our purposes, that 4 at the beginning indicates a particular location, which I will want to filter on for the report. Other leading location codes are one and two digit, so we have a 1-nnn-nnn-nnnnn as well as a 12-nnn-nnn-nnnnn
So in the survey flow I have multiple branches like this one:
Branch if CSA Matches Regex (^4-*) then set partner = 4 and location = ORI
partner is of type text set and location is text.
However, when I get in a response such as this one:
4-980-325-19749
It sets partner to 23 and location to ACAI.
That branch is set to:
Branch if CSA Matches Regex (^23-*) then set partner = 23 and location = ACAI
I have checked my REGEX here: https://regex101.com/ and it sure seems to only identify the ones I want and I cannot figure out why such an easy REGEX fails. I am hoping your new eyes will see the error!
Thanks for your help!


0 replies

Be the first to reply!

Leave a Reply