import re


def find_thing_in_tag(texte, what_we_are_looking_4: str):
    """
    This function returns the content of a choosen attribute (class, id, href...).
    :param texte: str. The full HTML tag.
    :param what_we_are_looking_4: An attibute.
    :return: The text content of the attibute.
    """
    texte = str(texte)

    if rep := re.match(f'(<.*?{what_we_are_looking_4}=")(.*?)(".*)', texte):
        return rep.group(2)
    return f"{what_we_are_looking_4} attibute not in {texte}"