better regex matching support, added regex host match test