def get_match_string(matches):
    """
    collect and return any matched groups that contain data,
    otherwise, return 'No data available'
    :param matches: an re match object
    """

    group_matches = 0
    match_string = ''

    for name, group in matches.groupdict().items():
        if group is not None:

            group = group.replace('\n', '').strip()

            if group_matches > 0:
                match_string += ', ' + group
            else:
                match_string += group

            group_matches += 1

    if not match_string:
        match_string = 'No data available'

    return match_string