import re


def extract_form_errors(html):
    """Extract the list of errors from the form."""
    errors = re.findall(
        '<ul class="errorlist"(.*)</ul>', html.decode(), re.IGNORECASE
    )
    return errors