I’m not an expert in icons and how to set them but your regular expressions don’t express what you intend:
-
XYZ*
means: letterX
, followed by letterY
, followed by an arbitrary number ofZ
s (including none). It matches hostnames starting withXY
,XYZ
,XYabc
. -
XZZ*
is similar. It matches hostnames starting withXZ
. LikeXZZ
,XZabc
, etc.
You simply want XYZ
and XZZ
because the regexes already match from the start and don’t have to match the complete hostname. For a complete matching you would write XYZ.*
(start with XYZ, followed by 0…n arbitrary characters).