10 Feb 2022 09:13 AM
Hi All,
In https://regex101.com/ the expression works but same is not working in dynatrace auto tag configuration rules, getting error as "Greedy or lazy character classes are not allowed, please use a possessive quantifier instead."
Please help me to fix this, I need to match only 4 hosts Dxxxx201, Dxxxx202,Dxxxx203, Dxxxx204 only in auto tag.
Solved! Go to Solution.
11 Feb 2022 04:34 AM
Perhaps this would work: use two conditions in the same rule. It acts as an AND condition.
"Host name starts with D" AND "host names ends with 201 - 204"
11 Feb 2022 05:17 AM
Thanks Adam, it worked, it filters only required four hosts.