import re


def is_valid(url, domain):
    """
        Check if given, URL is valid
            - If the given URL matches the Regular Expression of valid URL, return True
            - else, return False
    """
    if re.match(r'^https?://([\w-]*\.)?' + domain + r'.*$', url, re.M|re.I):
        
        # Valid URL pattern
        return True
    else:
        # Invalid URL pattern
        return False