now regex can check hostname