Quantcast
Channel: Topics in Category: Can I do this with LimeSurvey? - LimeSurvey forums
Viewing all articles
Browse latest Browse all 17529

I am looking to use regular expressions with options in Relevance equations - by: rsmokeUM

$
0
0
Hello,
I am trying to use a regexMatch in a Relevance equation to trigger the presentation of checkboxes. I want to use the i (case insensitive) option on the expression but when I enter it into the Conditions designer the returned expression is bounded automatically by the delimiters '/'.

The regular expression I am trying to run is:
/(?:^|(?<= ))(show|privatize|worried)(?:(?= )|$)/i

When I enter that into the Conditions designer it gets appended (and returned) to be:
((regexMatch("//(?:^|(?<= ))(show|privatize|worried)(?:(?= )|$)/i/", G3Q00051.NAOK)))

I want it to be:
((regexMatch("/(?:^|(?<= ))(show|privatize|worried)(?:(?= )|$)/i", G3Q00051.NAOK)))

Any ideas???

Viewing all articles
Browse latest Browse all 17529

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>