The regex should validate ok. For example if the user enters. The domain name should be a z a z 0 9 and hyphen the domain name should between 1 and 63 characters long.