12 Jul 2022 11:35 AM - last edited on 13 Jul 2022 02:59 AM by MaciejNeumann
guys i need help in this regex, check a string contains boths string example
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.
someindicator: ([^ ]*+)
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!