Dynatrace Reg exp : Greedy or lazy character classes are not allowed, please use a possessive quantifier instead.

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.

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”

Thanks Adam, it worked, it filters only required four hosts.