import re


def is_youtube_url(url: str) -> bool:
    """Checks if a string is a youtube url

    Args:
        url (str): youtube url

    Returns:
        bool: true of false
    """

    match = re.match(r"^(https?\:\/\/)?(www\.youtube\.com|youtu\.be)\/.+$", url)
    return bool(match)