import re


def extract_youtube_id(youtube_url):
    """ Extract the youtube ID from the url"""

    youtube_id_match = re.search(r'(?<=v=)[^&#]+', youtube_url)
    youtube_id_match = youtube_id_match or re.search(
        r'(?<=be/)[^&#]+', youtube_url)
    return (youtube_id_match.group(0) if youtube_id_match else None)