Bast Posted February 4, 2016 Report Share Posted February 4, 2016 Hi guys,My revive version is 3.0.5, and I have some problems with regex.Actually, I already created a lot of targeting chanels with delivery limitations, but I don't manage to create this one which seems really simple.Actually, I simply want to match either my domain or my domain ending with a slash.You can have a look at both screenshot I added to see which regex I used. (these ones don't work neither (mydomain.com)(/)?$ OR (mydomain.com).?$ )The banner is not displayed if I access neither http://www.mydomain.com nor http://www.mydomain.com/ but this works if I access http://mydomain.com?testfrombastNOTE: 'www' is optionnal, and my real regex links 2 domain (mydomain.com|mydomain2.com)(/)?$Thanks in advance.Bast Quote Link to comment Share on other sites More sharing options...
Erik Geurts Posted February 4, 2016 Report Share Posted February 4, 2016 I would like to recommend upgrading to the most recent version of Revive Adserver, the version you're using has several known bugs and security issues. Quote Link to comment Share on other sites More sharing options...
Bast Posted February 4, 2016 Author Report Share Posted February 4, 2016 Hi Erik,Thanks for your reply.Yes, I saw this tutorial (written by you and your team): https://www.revive-adserver.com/support/upgrading/So can you tell me if the regular expression I used will work on newest version?And otherwise, how can I make them work in this version?I unfortunately don't have so much time to upgrade the live adserver now...Regards,Bast Quote Link to comment Share on other sites More sharing options...
Erik Geurts Posted February 4, 2016 Report Share Posted February 4, 2016 I am not aware of any changes related to regex since v3.0.5 (but I haven't checked in detail). Just upgrading would not suddenly make it work. It's more likely that either you found a bug or you are trying to do something that won't work in any version. Unfortunately, I'm not a coder myself, so I would not know how to spot an error in your example (if there is an error...)An upgrade shouldn't take more than 15 minutes (in most cases). If you don't, it is not unlikely you'll get hacked soon. Quote Link to comment Share on other sites More sharing options...
Bast Posted February 4, 2016 Author Report Share Posted February 4, 2016 Ok, so I would update it soon. Thanks for the tip.BTW: having a kind of online regex tester for AdServer would be great! (e.g.: http://www.rubular.com/r/frRl1ucR8J) Quote Link to comment Share on other sites More sharing options...
andrewatfornax Posted February 8, 2016 Report Share Posted February 8, 2016 Just a thought @Bast - I don't have time right now to test, but do you need to include the opening and closing forward slashes into the regex?It may also be that you need to escape the forward slash that is in your regex with a backslash... Quote Link to comment Share on other sites More sharing options...
Rajdeep Singh Posted January 21, 2021 Report Share Posted January 21, 2021 Hi Guys, I trying to fetch a banner for some strings with '&' in them for e.g - bread & butter and I have configured the regex like ^bread \& butter$|^bread$ but banner is coming for bread but not for 'bread & butter', can you guys help me out ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.