use regex for url validation
domain subdomain matching