refined hostname regexp