import re


def icd_regex(text):
    """ Find ICD-10 codes in the text.

    Args:
        text (string): text to process.

    Returns:
        list: list of all ICD-10 codes in text.
    """

    pattern = r'[A-Z]\d+\.?\d+?'
    icd_codes = re.findall(pattern, text)
    return icd_codes