import re


def extract_pattern(text, term_pattern):
    """Returns  a list all terms found extracted

    --------
    text: string
    term_pattern: pattern or term to extract(you can also use r'' for raw regex pattern)

    """
    result = re.findall(term_pattern, text)
    return result