Answer the question
In order to leave comments, you need to log in
Regular expression: url starts and url ends?
Greetings!
Need regular expression to fire trigger in Google Tag Manager ("PagePath matches regular expression")
URL starts with /katalog and ends with /
Looks like this: /katalog/some-url/.../some-url/
This didn't work^\/katalog*\/$
Answer the question
In order to leave comments, you need to log in
Can be default if'om
if ((str.charAt(0) == "/katalog") && (str.charAt(str.length - 1) == "/")) {
// Стринга совпала
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question