Match string in Item : Need to match by String in each item of a list and return the full item.


i have lists and i want to match items of each list by string "Name" and "Address" 

    ['Server:  Corp', 'Address:  10.17.2.5\r', '\r', 'Name:    b.resolvers.level3.net\r', 'Address:  4.2.2.2\r', '\r', '']
    ['Server:  Corp', 'Address:  10.17.2.5\r', '\r', 'Name:    google-public-dns-a.google.com\r', 'Address:  8.8.8.8\r', '\r', '']
    ['Server:  Corp', 'Address:  10.17.2.5\r', '\r', 'Name:    dns.quad9.net\r', 'Address:  9.9.9.9\r', '\r', '']

    import re
    m = re.search(r'\bName\b'| \bAddress\b', line)
    for line in output:
            if m:
                print(m.group())

What i want :

    b.resolvers.level3.net , 4.2.2.2
    google-public-dns-a.google.com , 8.8.8.8
    dns.quad9.net , 9.9.9.9