Update RegEx extractions help text to show slashes don't need escaping #16604
Labels
c: Usability
For issues that let users achieve a defined goal more effectively or efficiently.
Help wanted
Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Milestone
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?
The text was updated successfully, but these errors were encountered: