import re


def find_in_output(output, key):
    """
    Find a key in the output and return its value.
    """
    matches = re.search("^%s=(.*)" % key, output, re.MULTILINE)
    if matches:
        return matches.groups()[0]
    return None