def match1(pattern, data, **parse_kwargs):
    """Returns first matched value of pattern in data or None if no matches"""
    matches = match(pattern, data, **parse_kwargs)
    return matches[0] if matches else None
Returns first matched value of pattern in data or None if no matches