12 Jul 2022 07:35 PM - last edited on 13 Jul 2022 10:59 AM by MaciejNeumann
13 Jul 2022 12:26 AM
Hey Mateus,
What exactly are you trying to capture in this scenario? Is it what is between those 2 strings or is it the whole value? I ask as the regex input in this config is for capturing a specific value and not checking if it contains a certain value or values.
In the example it provides above it would capture everything after /categories/ and not /categories/ itself. It isn't just checking for /categories/ it is extracting a substring.
If you want to capture the string of x and have it check for the 2 strings at the beginning and end then I would suggest using the very first configuration option which you can set to capture a substring between 2 strings.
If you just want to check for the 2 strings but still capture the whole value then looking at the configuration options I'm not sure it can do that.
13 Jul 2022 05:36 AM - edited 13 Jul 2022 05:40 AM
someindicator: ([^ ]*+)
or
^(.*?\/)[^\/]++\/?$
Refer below solution if of any help
Solved: Can dynatrace possible to capture two pattern using regex ? - Dynatrace Community
Solved: Issue with clean URL regex - Dynatrace Community
The above should work!