import re


def band_urls_list(page_source):
    """
    Forms and returns a list of urls of bands, taking a page source.
    """
    pattern = re.compile(
        '<a href="https://www\.metal-archives\.com/bands/[^<>]*>')
    matches = re.findall(pattern, page_source)
    for i in range(len(matches)):
        matches[i] = matches[i].split('"')[1]
    return matches