Changing RegEx for URl and Defining it inside the class and Splitting the domain into domain, subdomain and display methods