Help with the RegEx for tagging rule

Hi Folks,

I would need some help in defining a tagging rule that can match the set of hosts and assign tag to them.

The hostnames could be like below,

host1, host2, host3, server1, server2, machine1, machine2

and the expression I tried was

host|server|machine bot it matches only host1 host2 and host3.

Please help me to build RegEx that can match all listed hosts

Regards,

AK

Hello,

Try placing the regex in parentheses like this: “(?>host|server|machine)”
Also, make sure you are selecting Host Name contains regex.

Please see the screenshots below for how I was able to mimic this functionality. Hope this helps!

-Ryan

Great it worked Ryan. Thanks for helping me out.