import re


def extract_email_address(cv_text : str):
    """
    Function to extract emails using regex
    """
    #using regex to extract email address
    email_regex = re.compile(r'[\w._-]+@[\w-]+\.[\w.-]+')

    # matching all using regex
    emails = re.findall(email_regex, cv_text)
    
    # check if matches are found
    if emails :
        # if more than one email found return as a list
        if len(emails) > 1: return emails[0]
        else : return emails[0]

    # return none if no numbers found as per regex rule
    return None