Quantcast
Viewing all articles
Browse latest Browse all 17529

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

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)(?Image may be NSFW.
Clik here to view.
:(
?= )|$)/i

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

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

Any ideas???

Viewing all articles
Browse latest Browse all 17529

Trending Articles