import re


def url_validator(url: str) -> bool:
    """Check if the input looks like a valid url from youtube via regex

    :param url: input url wrote in the input file music_list.txt
    :type url: str
    :return: True/False
    :rtype: bool
    """
    pattern = "(http|https)://www.youtube.com/watch\?v=*"
    if re.match(pattern, url):
        return True
    else:
        return False