import re


def base64(value: str):
    """
    Extract base64 code from document
    Example Result:
        [QQ==,
        YmFzZTY0IQ,
        YmFzZTY0IQ==]
    """
    _base64_pat = r'(?:[a-zA-Z0-9+\/]{4})+(?:[a-zA-Z0-9+\/]{3}=|[a-zA-Z0-9+\/]{2}==|[a-zA-Z0-9+\/]{1}===)?'   # pylint: disable=C0301
    return re.findall(_base64_pat, value)