import re


def searchCustomEmoji(string: str):
    """
    Searches for a custom emoji in a specific ``str`` and returns it or None if nothing found.
    The custom emoji can either be animated or not.

    Params:
        string: The string which should get searched for a custom emoji.

    Returns: The custom emoji (``str``) or None if nothing found.
    """


    customEmoji = re.search("<[^:]*:[^:]*:(\d)+>", string)

    if customEmoji is not None:
        customEmoji = customEmoji.group(0)
    else:
        customEmoji = None

    return customEmoji