import re


def re_match_dob(user_form, re_input):
    """
    Outputs a tuple containing .group(1), group(3), and group(5) strings 
    from a regular expression match.
    """
    re_match = re.compile(re_input)
    re_match = re_match.search(user_form)
    if re_match:
        return (re_match.group(1).strip(), re_match.group(3).strip(),
                re_match.group(5).strip())