def _parse_match_info(match, regex, soccer=False):
    """
    Parse string containing info of a specific match

    :param match: Match data
    :type match: string
    :param regex: Match data pattern
    :type regex: Regex object
    :param soccer: Set to true if match contains soccer data, defaults to False
    :type soccer: bool, optional
    :return: Dictionary containing match information
    :rtype: dict
    """
    match = regex.search(match)
    match_info = {'league': match.group(1), 'home_team': match.group(2),
        'away_team': match.group(3), 'home_score': match.group(4),
        'away_score': match.group(5)}
    if match_info['home_score'] is None:
        match_info['home_score'] = '0'
    if match_info['away_score'] is None:
        match_info['away_score'] = '0'
    if soccer:
        match_info['match_time'] = match[6]
    return match_info
