import re


def get_patent_claims(soup):
    """ Get claims from USPTO patft HTML.

    Parameters
    ----------
    soup : bs4.BeautifulSoup
        Patent HTML.

    Returns
    -------
    list[str]
        List of claims.
    """
    try:
        claim_header = next(t for t in soup.find_all('center')
                            if t.text.lower() == 'claims')
    except StopIteration:
        return None

    claim_tag_w_junk = claim_header.find_next('hr')
    claim_text = str(claim_tag_w_junk).split('<hr>')[1]

    claims = [text.lstrip() for text in claim_text.split('<br><br>')
              if re.match(r'^\d+\. ', text.strip())]

    return claims if claims else None