Jump to content

Recommended Posts

Posted

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.

Bast

regex_v1.PNG

regex_v2.PNG

Posted

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.

  • 4 years later...
Posted

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 ?

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.

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