Hi there,
I'm trying to figure out how URL RegEx works.
My expectation: the RegEx is used on the URL. The match will be the variable value. Is here eventually my idea behind this functionality incorrect? I couldn't find a description.
I tried to identify the functionality by "try and error". So I'm using the following RegEx that should match the whole URL:
https://regex101.com/r/6moopu/1 ==> RegEx = ".*"
My setting in the intercept:
My setting in the survey:
My Survey Data:
My expectation would be that the URL is captured in full_url. What is incorrect here? Anyone has an idea?
As you can see, the other functionalities (URL Parameter and Current Page URL) work. So the connection between intercept and survey should work as expected.
Best regards,
Dominic
Solved
URL RegEx: How does it work?
Best answer by Dominic
Hi everyone,
I finally found the solution myself. In my opinion, Qualtrics should add documentation on this point.
The URL RegEx does not capture the matching RegEx, it captures the FIRST capture group (as far as I've done testing).
Please see example here: https://regex101.com/r/dLXzPK/1
The RegEx matches "identifier:1234" and the first capture group matches "1234". The "1234" can be safed as internal variable.
I hope I could help someone with this.
Best regards,
Dominic
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
