import re


def extract_auction_address(output):
    """extract the auction address from 'deploy' output"""
    match = re.search("^Auction address: (0x[0-9a-fA-F]{40})$", output, re.M)
    if match:
        return match[1]

    raise ValueError(f"Could not find auction address in output: {repr(output)}")