import re


def extract_digits_from_text(text):
    """
    This function extracts any digits in a text
    :param text:
    :return:
    """
    return list(map(int, re.findall(r'\d+', text))) if text else []