Rich-text Reply

Experiment URL - regular expression

Jeroenaelen 10-06-16

Experiment URL - regular expression

Hi folks, I want to A/B test the orange line 'Boek nu om zeker te zijn van een plek' on this page: https://www.tentamentrainingen.nl/erasmus-universiteit-rotterdam/bedrijfskunde/corporate-finance/62. Since this page does not have enough traffic by itself, I would like to A/B test the orange line on all product pages. They all have the same URL structure: https://www.tentamentrainingen.nl/xx/yy/zz/12. Is there a way that I can make a regular experession to include all these pages in one experiment? Or could there be another solution? Thanks a lot in advance for the help. Jeroen
CouchPsycho 10-06-16
 

Re: Experiment URL - regular expression

Yes, you can as long as you are sure about the targeting:

try:

https://www.tentamentrainingen.nl/[^/]+/[^/]+/[^/]+/[0-9]{2,2}

if the digits at the end are always 2.

KR

Michael



"the essence of the creative act is to see the familiar as strange." (anonymous)
Jeroenaelen 10-06-16
 

Re: Experiment URL - regular expression

[ Edited ]

Hi Michael,

Thanks for the quick help! Good that you mention, the digits at the end can also be 1 or 3. How can I include that in the expression?

CouchPsycho 10-06-16
 

Re: Experiment URL - regular expression

That is easy

https://www.tentamentrainingen.nl/[^/]+/[^/]+/[^/]+/[0-9]{1,3}

within the curly brackets one notes minimum and maximum occurence of the elements within the square brackets. + means "at least once" and the ^ within means, all excepting the following.

KR

Michael



"the essence of the creative act is to see the familiar as strange." (anonymous)
Jeroenaelen 10-10-16
 

Re: Experiment URL - regular expression

Michael,

 

Thanks for the help, you're great! Smiley Happy