I have a regex problem.
In google analytics, I want to add a filter that re-writers certain parts of URLs, and keeps only the last part of them.
My problem is that in these URLs, I have the character
This is an example :
Here, i'm supposed to keep
As you can see, the URL contains dashes
So when I use the following regex :
It should give me the string
Instead, it gives me
It cuts off the first 2 characters of the word. Anyone knows the reason?
I tried many solutions that didn't work exactly as I wanted :
[^/]+$ : This takes all URLs but I only want the URLs that start with the prefix above.
Any help would be appreciated