if (rindex($element, "host1.com") > -1 or    rindex($element, "host2.de")  > -1 or    rindex($element, "host3.org") > -1) {