cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

ggogi
Observer

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.

ggogi_1-1644484100299.png

 

ggogi_0-1644483960329.png

2 REPLIES 2

adam_gardner
Dynatrace Champion
Dynatrace Champion

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"

 

adam_gardner_0-1644553992605.png

 

 

ggogi
Observer

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

 

ggogi_0-1644556582858.png

 

Featured Posts