import re


def find_date_lines_in_description(description):
    """ 
    output: a list of matches in format
        date: the date of the match
        line: the full line
        line_before: the text matches before the date
        line_after: the text matches after the date
    """

    description.strip()
    output = []
    splitdescription = description.splitlines()

    for line in splitdescription:
        p = re.compile(
            r"(?P<line_before>.*?)(?P<date>\d\d*[^0-9]?\d\d?[^0-9]?\d\d+)\s?(?P<line_after>.*)")
        matches = p.finditer(line)

        for match in matches:
            date = match.group("date")
            line_before = match.group("line_before")
            line_after = match.group("line_after")
            output.append({"date": date, "line_before": line_before, "line_after": line_after, "line_full": line })

    return output