Hi! We are using Visual Editor with JS, and the im...
# ask-questions
b
Hi! We are using Visual Editor with JS, and the implementation is through GTM. We are facing some issues with the url targeting. 1. We made an url targeting for this regex:
Copy code
https:\/\/ingatlan.com\/(.*\/)?([0-9]+)
But GB changes it to this, teherefor it does not match the page we would like
Copy code
https:\\/\\/ingatlan.com\\/(.*\\/)?([0-9]+)
Could you please help, how to keep our original regex? Thank you!
image.png
p
Anna have you tried a different, older flavour of regex? I’ve no idea which version GB supports, but I’ve had this issue with regex differences with MySQL and Python and sometimes you need to not use the new style \*s tokes. Try sticking it through https://regex101.com/ or bard/gpt.
🙏 1
b
Hi Matt! Thank you for the input! We will check this out!
👍 1
Our developer wrote back that he tried it, and got this. The problem is that the regex we put in, gets changed
Képernyőfotó 2023-10-26 - 13.55.00.png
Hi @fresh-football-47124! Could you please help, we stuck here. Thank you!
f
hi Anna
you can enter the url without escaping the slashes, we’ll add the escaping
b
Hi @fresh-football-47124! Thank you for your answear. Our developer says he tried it too, and didnt work. Should we just take out some of the escapes then? If yes, which ones? What we try to reach with this
https:\/\/ingatlan.com\/(.*\/)?([0-9]+)
Is that it begins with https://ingatlan.com/ Then it includes numbers, which might come directly after the above, or there might be a text/ before e.g. https://ingatlan.com/33810996 or https://ingatlan.com/xi-ker-budapest-lakas/33810996 but after the last / there must be only numbers
like how its on the screenshot