I have been working on a project to analyze survey responses in Qualtrics by counting the number of matches to specific regular expressions. For example, whenever phrases like "I think...", "In my opinion," are used, the count increases by one.
Below is the JavaScript code that I've developed for this analysis:
// JavaScript code goes here
In order to implement this script in Qualtrics, I followed these steps:
// Steps for implementing in Qualtrics
However, when I previewed the survey and checked the console, I found that the regular expressions were missing the string variables. Here is what was expected:
// Expected regular expression format
Is there a specific syntax in Qualtrics that I might be overlooking? Any guidance would be appreciated as I'm still learning about Stack and JavaScript. Thank you!