Jump to content

Regex not working as expected


Recommended Posts

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?testfrombast

NOTE: 'www' is optionnal, and my real regex links 2 domain (mydomain.com|mydomain2.com)(/)?$

Thanks in advance.




Link to comment
Share on other sites

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...



Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 years later...

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...