I am trying to parse a URL with a regex in Embedded Data in a Website/App Feedback/Intercept survey.
I have tried to parse both the actual URL and the URL that Qualtrics seems to read and understand:
* Actual (in browser): https://websites.connectcdk.com/wsm/index.do?webId=motp-nitrademo2&locale=en_US
* Pulled into Qualtrics Survey Data (a bunch of HTML garb): https://websites.connectcdk.com/wsm/route/base-view/hydraDashboard?configCtx={"webId":"motp-nitrademo2","locale":"en_US","version":"WIP"}
We have written the following regex to parse the HTML-ey URL: [^\\?]+\\?.*webId["\\%22\\%3A\\:\\=\\&]+([^\\&\\%]+)
...and it works in the Regex tester (https://regex101.com/), but when plugged into my intercept project it pulls the webId as "3A" when it should be pulling "motp-nitrademo2".
Help! We have been troubleshooting this for weeks now and can't seem to come up with the right regex..
Turns out the regex was correct but this issue was related to being in a demo environment/URL weirdness.
Leave a Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.