Rich-text Reply

Help with regex string please

Heather_rider 03-08-16

Help with regex string please

I'm creating an experiment goal that will use Regex. The string needs to capture a visitor who went to any page OTHER than the two experiment URL's in the split test. Those URL's are:

http://www.domain.com/example.aspx

http://www.domain.com/topics/anotherexample.aspx

 

Here is my (I think incorrect) regex: (domain.com*)((?!example|topics/anotherexample).)*$

robertchan 03-08-16
 

Re: Help with regex string please

Is there a reason you're going with Regex versus using Optimizely's substring and simple match? You could do substring include domain.com and use simple match exclude for the two links you specified.
Robert Chan

Re: Help with regex string please

I wasn't clear in my description. Sorry about that. I'm setting up a "next page visit" goal and am using regex for that.

JDahlinANF 03-08-16
 

Re: Help with regex string please

Use "Substring Match" to match all pages on your domain
And exclude the two URLs used in your other experiment by replicating the other experiment's URL targeting into the "Exclude URLs" section of the new experiment.