I tried to use a regular expression to generate a value for a custom dimension from the URL.
Here I read that I should use a Regular Expression testing tool like https://regex101.com/ to prevent mistakes.
But my impression is that, for example, escaping an URL slash in Matomo is wrong and I have to do without backslashes instead.
URL: /de/area1/xyz.html or /de/area2/xyz.html
To extract area1 or area2 I have following regex:
Correct Regex: \/de\/([a-zA-ZäöüÄÖÜ-_]+)
Matomo regex that delivers the desired results: /de/([a-zA-ZäöüÄÖÜ-_]+)
Is the documentation with the reference to regex101.com not precise enough or is the regular expression implementation in Matomo different?