import re


def re_match(user_form, re_input):
    """Outputs a .group(1) string 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()