Corrected the regex

Now the regex validates the url and exactly match domain and subdomain.